Browse Source

Merge pull request #2427 from ardevd/if_fix

FileDisplayActivity: Replaced duplicate subexpression in if statement with instantVideoUploadEnabled preference.
Andy Scherzinger 7 years ago
parent
commit
597af82f48

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

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