mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 09:39:25 +03:00
show build number, if set
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
6f70ebd3a1
commit
6678226472
3 changed files with 14 additions and 1 deletions
|
@ -44,6 +44,7 @@ import android.preference.PreferenceCategory;
|
|||
import android.preference.PreferenceManager;
|
||||
import android.preference.PreferenceScreen;
|
||||
import android.preference.SwitchPreference;
|
||||
import android.text.TextUtils;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuInflater;
|
||||
import android.view.MenuItem;
|
||||
|
@ -220,7 +221,16 @@ public class SettingsActivity extends PreferenceActivity
|
|||
Preference pAboutApp = findPreference("about_app");
|
||||
if (pAboutApp != null) {
|
||||
pAboutApp.setTitle(String.format(getString(R.string.about_android), getString(R.string.app_name)));
|
||||
pAboutApp.setSummary(String.format(getString(R.string.about_version), appVersion));
|
||||
|
||||
String buildNumber = getResources().getString(R.string.buildNumber);
|
||||
|
||||
if (TextUtils.isEmpty(buildNumber)) {
|
||||
pAboutApp.setSummary(String.format(getString(R.string.about_version), appVersion));
|
||||
} else {
|
||||
pAboutApp.setSummary(String.format(getString(R.string.about_version_with_build),
|
||||
appVersion,
|
||||
buildNumber));
|
||||
}
|
||||
}
|
||||
|
||||
// license
|
||||
|
|
|
@ -144,6 +144,8 @@
|
|||
<string name="dev_link">https://download.nextcloud.com/android/dev/nextcloud-dev-</string>
|
||||
<string name="dev_latest">https://download.nextcloud.com/android/dev/latest</string>
|
||||
<string name="dev_changelog">https://github.com/nextcloud/android/raw/dev/CHANGELOG.md</string>
|
||||
|
||||
<string name="buildNumber" translatable="false"></string>
|
||||
</resources>
|
||||
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
<resources>
|
||||
<string name="about_android">%1$s Android app</string>
|
||||
<string name="about_version">version %1$s</string>
|
||||
<string name="about_version_with_build">version %1$s, build #%2$s</string>
|
||||
<string name="actionbar_sync">Refresh account</string>
|
||||
<string name="actionbar_open_with">Open with</string>
|
||||
<string name="actionbar_mkdir">New folder</string>
|
||||
|
|
Loading…
Reference in a new issue