show snackbar longer

This commit is contained in:
tobiasKaminsky 2017-12-15 12:35:42 +01:00
parent 462d9d90cc
commit b0586ee9da
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7

View file

@ -615,7 +615,7 @@ public abstract class FileActivity extends DrawerActivity
Log_OC.e(TAG, "Error detecting app version", e);
}
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 (openDirectly) {
@ -625,7 +625,7 @@ public abstract class FileActivity extends DrawerActivity
context.startActivity(intent);
} else {
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 -> {
String devApkLink = (String) context.getText(R.string.dev_link)
+ finalLatestVersion + ".apk";
@ -635,7 +635,7 @@ public abstract class FileActivity extends DrawerActivity
}).show();
}
} 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();
}
}
}