Fixed outdated server condition for server version.

Signed-off-by: A117870935 <surinder.kumar@t-systems.com>
This commit is contained in:
A117870935 2023-10-30 13:49:36 +05:30
parent f108266492
commit 8aec2ff8e1

View file

@ -437,12 +437,10 @@ public class FileDisplayActivity extends FileActivity
private void checkOutdatedServer() {
Optional<User> user = getUser();
OwnCloudVersion serverVersion = user.get().getServer().getVersion();
// show outdated warning
if (user.isPresent() &&
CapabilityUtils.checkOutdatedWarning(getResources(),
serverVersion,
user.get().getServer().getVersion(),
getCapabilities().getExtendedSupport().isTrue())) {
DisplayUtils.showServerOutdatedSnackbar(this, Snackbar.LENGTH_LONG);
}