Эх сурвалжийг харах

FileDisplayActivity: Removed duplicate subexpression in binary operator if statement.

- I guess this is pretty self explanatory.
eho 7 жил өмнө
parent
commit
6e2d9d2a24

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

@@ -288,8 +288,7 @@ 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) ||
-                PreferenceManager.instantPictureUploadEnabled(this)) {
+        if (PreferenceManager.instantPictureUploadEnabled(this)) {
 
             // remove legacy shared preferences
             SharedPreferences.Editor editor = PreferenceManager.getDefaultSharedPreferences(this).edit();