Use sameMajorVersion of OwnCloudVersion
Signed-off-by: tobiasKaminsky <[email protected]>
This commit is contained in:
3 files changed
+3
-4
No files matched your search
+1
-1
@@ -56,7 +56,7 @@ configurations {
|
||||
|
||||
ext {
|
||||
jacocoVersion = "0.8.2"
|
||||
androidLibraryVersion = "master-SNAPSHOT"
|
||||
androidLibraryVersion = "sameMajor-SNAPSHOT"
|
||||
|
||||
travisBuild = System.getenv("TRAVIS") == "true"
|
||||
|
||||
|
||||
@@ -1255,7 +1255,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
|
||||
|
||||
// show outdated warning
|
||||
if (getResources().getBoolean(R.bool.show_outdated_server_warning) &&
|
||||
MainApp.OUTDATED_SERVER_VERSION.compareTo(mServerInfo.mVersion) >= 0 &&
|
||||
MainApp.OUTDATED_SERVER_VERSION.isSameMajorVersion(mServerInfo.mVersion) &&
|
||||
!mServerInfo.hasExtendedSupport) {
|
||||
DisplayUtils.showServerOutdatedSnackbar(this, Snackbar.LENGTH_INDEFINITE);
|
||||
}
|
||||
|
||||
@@ -27,7 +27,6 @@ package com.owncloud.android.ui.activity;
|
||||
|
||||
import android.Manifest;
|
||||
import android.accounts.Account;
|
||||
import android.accounts.AccountManager;
|
||||
import android.accounts.AuthenticatorException;
|
||||
import android.annotation.TargetApi;
|
||||
import android.app.Activity;
|
||||
@@ -378,7 +377,7 @@ public class FileDisplayActivity extends FileActivity
|
||||
|
||||
// show outdated warning
|
||||
if (getResources().getBoolean(R.bool.show_outdated_server_warning) &&
|
||||
MainApp.OUTDATED_SERVER_VERSION.compareTo(serverVersion) >= 0 &&
|
||||
MainApp.OUTDATED_SERVER_VERSION.isSameMajorVersion(serverVersion) &&
|
||||
getCapabilities().getExtendedSupport().isFalse()) {
|
||||
DisplayUtils.showServerOutdatedSnackbar(this, Snackbar.LENGTH_LONG);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user