mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 09:39:25 +03:00
show snackbar longer
This commit is contained in:
parent
462d9d90cc
commit
b0586ee9da
1 changed files with 3 additions and 3 deletions
|
@ -615,7 +615,7 @@ public abstract class FileActivity extends DrawerActivity
|
||||||
Log_OC.e(TAG, "Error detecting app version", e);
|
Log_OC.e(TAG, "Error detecting app version", e);
|
||||||
}
|
}
|
||||||
if (latestVersion == -1 || currentVersion == -1) {
|
if (latestVersion == -1 || currentVersion == -1) {
|
||||||
Snackbar.make(view, R.string.dev_version_no_information_available, Snackbar.LENGTH_SHORT).show();
|
Snackbar.make(view, R.string.dev_version_no_information_available, Snackbar.LENGTH_LONG).show();
|
||||||
}
|
}
|
||||||
if (latestVersion > currentVersion) {
|
if (latestVersion > currentVersion) {
|
||||||
if (openDirectly) {
|
if (openDirectly) {
|
||||||
|
@ -625,7 +625,7 @@ public abstract class FileActivity extends DrawerActivity
|
||||||
context.startActivity(intent);
|
context.startActivity(intent);
|
||||||
} else {
|
} else {
|
||||||
Integer finalLatestVersion = latestVersion;
|
Integer finalLatestVersion = latestVersion;
|
||||||
Snackbar.make(view, R.string.dev_version_new_version_available, Snackbar.LENGTH_SHORT)
|
Snackbar.make(view, R.string.dev_version_new_version_available, Snackbar.LENGTH_LONG)
|
||||||
.setAction(context.getString(R.string.version_dev_download), v -> {
|
.setAction(context.getString(R.string.version_dev_download), v -> {
|
||||||
String devApkLink = (String) context.getText(R.string.dev_link)
|
String devApkLink = (String) context.getText(R.string.dev_link)
|
||||||
+ finalLatestVersion + ".apk";
|
+ finalLatestVersion + ".apk";
|
||||||
|
@ -635,7 +635,7 @@ public abstract class FileActivity extends DrawerActivity
|
||||||
}).show();
|
}).show();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Snackbar.make(view, R.string.dev_version_no_new_version_available, Snackbar.LENGTH_SHORT).show();
|
Snackbar.make(view, R.string.dev_version_no_new_version_available, Snackbar.LENGTH_LONG).show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue