1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-08-13 16:53:50 -04:00

IRCService: onDestroy(): Only stopForeground if service is in foreground..

This commit is contained in:
Sebastian Kaspari 2010-04-13 21:28:13 +02:00
parent 1f4a63b47d
commit 4062f0b16e

View File

@ -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);
}
}