Move check to job method.

This commit is contained in:
Alex Hart
2024-10-07 09:31:04 -03:00
committed by Greyson Parrelli
parent fa425567bf
commit 861ef4d708
2 changed files with 14 additions and 5 deletions

View File

@@ -254,10 +254,7 @@ public class ApplicationContext extends Application implements AppForegroundObse
AppDependencies.getShakeToReport().enable();
checkBuildExpiration();
MemoryTracker.start();
if (RemoteConfig.messageBackups()) {
AppDependencies.getJobManager().add(BackupSubscriptionCheckJob.create());
}
BackupSubscriptionCheckJob.enqueueIfAble();
long lastForegroundTime = SignalStore.misc().getLastForegroundTime();
long currentTime = System.currentTimeMillis();