mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 23:28:42 +03:00
Fixed outdated server condition for server version.
Signed-off-by: A117870935 <surinder.kumar@t-systems.com>
This commit is contained in:
parent
f108266492
commit
8aec2ff8e1
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue