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

MainApp: Fixed instant upload check.

The if statement should check whether instant photo uploads or instant video uploads are enabled.
ardevd 7 жил өмнө
parent
commit
cf9925249b

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

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