Просмотр исходного кода

disable instant upload only on Nougat

tobiasKaminsky 8 лет назад
Родитель
Сommit
8c7edf5339

+ 3 - 3
src/com/owncloud/android/ui/activity/FileDisplayActivity.java

@@ -243,12 +243,12 @@ public class FileDisplayActivity extends HookActivity
     }
 
     /**
-     * For Android 5+.
+     * For Android 7+.
      * Opens a pop up info for the new instant upload and disabled the old instant upload.
      */
     private void upgradeNotificationForInstantUpload() {
-        // check for Android 5+ if legacy instant upload is activated --> disable + show info
-        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP &&
+        // check for Android 7+ if legacy instant upload is activated --> disable + show info
+        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N &&
                 (PreferenceManager.instantPictureUploadEnabled(this) ||
                         PreferenceManager.instantPictureUploadEnabled(this))) {
 

+ 2 - 2
src/com/owncloud/android/ui/activity/Preferences.java

@@ -368,8 +368,8 @@ public class Preferences extends PreferenceActivity
 
         mPrefInstantUploadCategory = (PreferenceCategory) findPreference("instant_uploading_category");
 
-        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {
-            // Instant upload via preferences on pre Android Lollipop
+        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) {
+            // Instant upload via preferences on pre Android Nougat
             mPrefInstantUploadPath = findPreference("instant_upload_path");
             if (mPrefInstantUploadPath != null) {