Skip to content

Commit

Permalink
show outdated warning also on very old servers
Browse files Browse the repository at this point in the history
Signed-off-by: tobiasKaminsky <[email protected]>
  • Loading branch information
tobiasKaminsky committed Sep 8, 2023
1 parent cb21ef0 commit 5b39974
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,9 @@ private void onGetServerInfoFinish(RemoteOperationResult result) {

// show outdated warning
if (getResources().getBoolean(R.bool.show_outdated_server_warning) &&
MainApp.OUTDATED_SERVER_VERSION.isSameMajorVersion(mServerInfo.mVersion) &&
(MainApp.OUTDATED_SERVER_VERSION.isSameMajorVersion(mServerInfo.mVersion) ||
mServerInfo.mVersion.isOlderThan(MainApp.OUTDATED_SERVER_VERSION))
&&
!mServerInfo.hasExtendedSupport) {
DisplayUtils.showServerOutdatedSnackbar(this, Snackbar.LENGTH_INDEFINITE);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,8 @@ private void checkOutdatedServer() {
if (getResources().getBoolean(R.bool.show_outdated_server_warning) && user.isPresent()) {
OwnCloudVersion serverVersion = user.get().getServer().getVersion();
// show outdated warning
if (MainApp.OUTDATED_SERVER_VERSION.isSameMajorVersion(serverVersion) &&
if ((MainApp.OUTDATED_SERVER_VERSION.isSameMajorVersion(serverVersion) ||
serverVersion.isOlderThan(MainApp.OUTDATED_SERVER_VERSION)) &&
getCapabilities().getExtendedSupport().isFalse()) {
DisplayUtils.showServerOutdatedSnackbar(this, Snackbar.LENGTH_LONG);
}
Expand Down

0 comments on commit 5b39974

Please sign in to comment.