mirror of
https://github.com/nextcloud/android.git
synced 2024-12-18 06:51:55 +03:00
isApiLevelLowerThan35
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
9810020dec
commit
e37a5590ae
1 changed files with 3 additions and 3 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue