mirror of
https://github.com/nextcloud/android.git
synced 2024-12-18 15:01:57 +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);
|
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());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue