diff --git a/src/main/java/com/owncloud/android/ui/activity/SettingsActivity.java b/src/main/java/com/owncloud/android/ui/activity/SettingsActivity.java index 515ee618a5..6af4ad2c58 100644 --- a/src/main/java/com/owncloud/android/ui/activity/SettingsActivity.java +++ b/src/main/java/com/owncloud/android/ui/activity/SettingsActivity.java @@ -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 diff --git a/src/main/res/values/setup.xml b/src/main/res/values/setup.xml index 206b24e663..e910c11811 100644 --- a/src/main/res/values/setup.xml +++ b/src/main/res/values/setup.xml @@ -144,6 +144,8 @@ https://download.nextcloud.com/android/dev/nextcloud-dev- https://download.nextcloud.com/android/dev/latest https://github.com/nextcloud/android/raw/dev/CHANGELOG.md + + diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index f4356a0cae..058a157307 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -2,6 +2,7 @@ %1$s Android app version %1$s + version %1$s, build #%2$s Refresh account Open with New folder