Skip to content

Commit

Permalink
Schedule workers only when Mainactivity is instantiated
Browse files Browse the repository at this point in the history
  • Loading branch information
aanorbel committed Mar 22, 2024
1 parent a93cccc commit e943572
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
.build().show(getSupportFragmentManager(), null);
}
ThirdPartyServices.checkUpdates(this);
scheduleWorkers();
}

if (android.os.Build.VERSION.SDK_INT >= 29) {
Expand All @@ -158,7 +159,6 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
}
}
requestNotificationPermission();
scheduleWorkers();
onNewIntent(getIntent());
}

Expand Down

0 comments on commit e943572

Please sign in to comment.