Skip to content

Commit

Permalink
VideoStoreImportService: another attempt to stop when app goes backgr…
Browse files Browse the repository at this point in the history
  • Loading branch information
courville committed Dec 12, 2024
1 parent f5e5d57 commit 19a84fc
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,12 @@ public int onStartCommand(Intent intent, int flags, int startId) {
ArchosUtils.addBreadcrumb(SentryLevel.INFO, "VideoStoreImportService.onStartCommand", "created notification + startForeground " + NOTIFICATION_ID + " notification null? " + (n == null));
log.debug("onStartCommand: created notification + startForeground " + NOTIFICATION_ID + " notification null? " + (n == null));

if (!AppState.isForeGround()) {
cleanup();
stopSelf();
return START_NOT_STICKY;
}

if (intent == null || intent.getAction() == null) {
// do a full import here to make sure that we have initial data
log.debug("onStartCommand: intent == null || intent.getAction() == null do MESSAGE_IMPORT_FULL");
Expand Down

0 comments on commit 19a84fc

Please sign in to comment.