Selaa lähdekoodia

set outdated server warning to NC13

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky 5 vuotta sitten
vanhempi
commit
2221ccd7b5

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

@@ -115,7 +115,7 @@ public class MainApp extends MultiDexApplication implements
     HasContentProviderInjector,
     HasBroadcastReceiverInjector {
 
-    public static final OwnCloudVersion OUTDATED_SERVER_VERSION = OwnCloudVersion.nextcloud_14;
+    public static final OwnCloudVersion OUTDATED_SERVER_VERSION = OwnCloudVersion.nextcloud_13;
     public static final OwnCloudVersion MINIMUM_SUPPORTED_SERVER_VERSION = OwnCloudVersion.nextcloud_12;
 
     private static final String TAG = MainApp.class.getSimpleName();

+ 1 - 1
src/main/java/com/owncloud/android/authentication/AuthenticatorActivity.java

@@ -1234,7 +1234,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
 
             // show outdated warning
             if (getResources().getBoolean(R.bool.show_outdated_server_warning) &&
-                    mServerInfo.mVersion.compareTo(MainApp.OUTDATED_SERVER_VERSION) < 0) {
+                MainApp.OUTDATED_SERVER_VERSION.compareTo(mServerInfo.mVersion) >= 0) {
                 DisplayUtils.showServerOutdatedSnackbar(this);
             }