SDL: do not show notification again if the app itself terminated

This commit is contained in:
Sergii Pylypenko
2015-10-20 03:39:12 +03:00
parent 769abc197b
commit 1cbdbed64d

View File

@@ -105,6 +105,8 @@ public class DummyService extends Service
if (intent != null && Intent.ACTION_DELETE.equals(intent.getAction()))
{
Log.v("SDL", "User dismissed notification, killing myself");
stopSelfResult(5);
stopSelfResult(0);
System.exit(0);
}
Log.v("SDL", "Starting dummy service - displaying notification");