isApiLevelLowerThan35

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2024-12-09 12:41:02 +01:00 committed by Alper Öztürk
parent 9810020dec
commit e37a5590ae

View file

@ -63,9 +63,9 @@ public class BootupBroadcastReceiver extends BroadcastReceiver {
AndroidInjection.inject(this, context); AndroidInjection.inject(this, context);
if (Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())) { if (Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())) {
boolean isApiLevel35OrHigher = (Build.VERSION.SDK_INT >= 35); boolean isApiLevelLowerThan35 = (Build.VERSION.SDK_INT < 35);
MainApp.initSyncOperations(!isApiLevel35OrHigher, MainApp.initSyncOperations(isApiLevelLowerThan35,
context, context,
preferences, preferences,
uploadsStorageManager, uploadsStorageManager,
@ -78,7 +78,7 @@ public class BootupBroadcastReceiver extends BroadcastReceiver {
walledCheckCache, walledCheckCache,
syncedFolderProvider syncedFolderProvider
); );
MainApp.initContactsBackup(accountManager, backgroundJobManager, !isApiLevel35OrHigher); MainApp.initContactsBackup(accountManager, backgroundJobManager, isApiLevelLowerThan35);
} else { } else {
Log_OC.d(TAG, "Getting wrong intent: " + intent.getAction()); Log_OC.d(TAG, "Getting wrong intent: " + intent.getAction());
} }