Merge pull request #4211 from nextcloud/sameMajor
Use sameMajorVersion of OwnCloudVersion
This commit is contained in:
3 files changed
+3
-4
No files matched your search
+1
-1
@@ -77,7 +77,7 @@ repositories {
|
||||
|
||||
// semantic versioning for version code
|
||||
def versionMajor = 3
|
||||
def versionMinor = 7
|
||||
def versionMinor = 8
|
||||
def versionPatch = 0
|
||||
def versionBuild = 0 // 0-50=Alpha / 51-98=RC / 90-99=stable
|
||||
|
||||
|
||||
@@ -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