mirror of
https://github.com/moparisthebest/Yaaic
synced 2025-02-16 23:10:11 -05:00
IRCService: onDestroy(): Only stopForeground if service is in foreground..
This commit is contained in:
parent
1f4a63b47d
commit
4062f0b16e
@ -269,8 +269,10 @@ public class IRCService extends Service
|
|||||||
public void onDestroy()
|
public void onDestroy()
|
||||||
{
|
{
|
||||||
// Make sure our notification is gone.
|
// Make sure our notification is gone.
|
||||||
|
if (foreground) {
|
||||||
stopForegroundCompat(R.string.app_name);
|
stopForegroundCompat(R.string.app_name);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user