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:
Vlad Baicu 2018-07-18 18:55:20 +03:00
Родитель 7bfd95a998
Коммит 83c53e2927
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -152,7 +152,7 @@ public class StumblerService extends PersistentIntentService
startForeground(R.id.stumblerNotification, notification);
}
return START_STICKY;
return super.onStartCommand(intent, flags, startId);
}
// Called from the main thread