瀏覽代碼

FileDisplayActivity: Added missing Preference check.

eho 7 年之前
父節點
當前提交
239df11525
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java

+ 2 - 1
src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java

@@ -288,7 +288,8 @@ public class FileDisplayActivity extends HookActivity
      */
     private void upgradeNotificationForInstantUpload() {
         // check for Android 6+ if legacy instant upload is activated --> disable + show info
-        if (PreferenceManager.instantPictureUploadEnabled(this)) {
+        if (PreferenceManager.instantPictureUploadEnabled(this) ||
+                PreferenceManager.instantVideoUploadEnabled(this)) {
 
             // remove legacy shared preferences
             SharedPreferences.Editor editor = PreferenceManager.getDefaultSharedPreferences(this).edit();