1
0
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:
Sebastian Kaspari 2010-04-13 21:28:13 +02:00
parent 1f4a63b47d
commit 4062f0b16e

View File

@ -269,8 +269,10 @@ public class IRCService extends Service
public void onDestroy()
{
// Make sure our notification is gone.
if (foreground) {
stopForegroundCompat(R.string.app_name);
}
}
/**