зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1476596 - Prevent Stumbler notification being shown after reboot. r=jchen
Because of the START_STICKY flag, upon boot completed, the service would be started by the system which would trigger onStartCommand and the notification being shown on Android Oreo+ devices without a following call to onHandleIntent. MozReview-Commit-ID: EldSSzRb7Zd --HG-- extra : rebase_source : 2f39e499b744188e48adbdf03e426d9d50c45262
This commit is contained in:
Родитель
7bfd95a998
Коммит
83c53e2927
|
@ -152,7 +152,7 @@ public class StumblerService extends PersistentIntentService
|
||||||
|
|
||||||
startForeground(R.id.stumblerNotification, notification);
|
startForeground(R.id.stumblerNotification, notification);
|
||||||
}
|
}
|
||||||
return START_STICKY;
|
return super.onStartCommand(intent, flags, startId);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Called from the main thread
|
// Called from the main thread
|
||||||
|
|
Загрузка…
Ссылка в новой задаче