From e37a5590ae5d0029793320833ce33669abc96cae Mon Sep 17 00:00:00 2001 From: alperozturk Date: Mon, 9 Dec 2024 12:41:02 +0100 Subject: [PATCH] isApiLevelLowerThan35 Signed-off-by: alperozturk --- .../com/owncloud/android/files/BootupBroadcastReceiver.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/owncloud/android/files/BootupBroadcastReceiver.java b/app/src/main/java/com/owncloud/android/files/BootupBroadcastReceiver.java index b2e918e1cd..9046fa21f1 100644 --- a/app/src/main/java/com/owncloud/android/files/BootupBroadcastReceiver.java +++ b/app/src/main/java/com/owncloud/android/files/BootupBroadcastReceiver.java @@ -63,9 +63,9 @@ public class BootupBroadcastReceiver extends BroadcastReceiver { AndroidInjection.inject(this, context); 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, preferences, uploadsStorageManager, @@ -78,7 +78,7 @@ public class BootupBroadcastReceiver extends BroadcastReceiver { walledCheckCache, syncedFolderProvider ); - MainApp.initContactsBackup(accountManager, backgroundJobManager, !isApiLevel35OrHigher); + MainApp.initContactsBackup(accountManager, backgroundJobManager, isApiLevelLowerThan35); } else { Log_OC.d(TAG, "Getting wrong intent: " + intent.getAction()); }