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

Merge pull request #2564 from nextcloud/bug-identical-sub-expression

MainApp: Fixed auto upload state check.
Andy Scherzinger 7 жил өмнө
parent
commit
c2ac4c4ddd

+ 1 - 1
src/main/java/com/owncloud/android/MainApp.java

@@ -489,7 +489,7 @@ public class MainApp extends MultiDexApplication {
     private static void updateToAutoUpload() {
             Context context = getAppContext();
             if (PreferenceManager.instantPictureUploadEnabled(context) ||
-                            PreferenceManager.instantPictureUploadEnabled(context)) {
+                    PreferenceManager.instantVideoUploadEnabled(context)){
 
                 // remove legacy shared preferences
                 SharedPreferences.Editor editor = PreferenceManager.getDefaultSharedPreferences(context).edit();