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