Ver Fonte

fix npe on version checking

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky há 6 anos atrás
pai
commit
6ade530a26

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

@@ -366,7 +366,7 @@ public class FileDisplayActivity extends HookActivity
             if (MainApp.getVersionCode() > lastSeenVersion) {
                 OwnCloudVersion serverVersion = AccountUtils.getServerVersionForAccount(account, this);
 
-                if (serverVersion.compareTo(MainApp.OUTDATED_SERVER_VERSION) < 0) {
+                if (MainApp.OUTDATED_SERVER_VERSION.compareTo(serverVersion) >= 0) {
                     DisplayUtils.showServerOutdatedSnackbar(this);
                 }