add complete version as we had it

This commit is contained in:
sonora 2015-10-31 15:35:53 +01:00
parent 324242b69d
commit afaf61f652

View file

@ -343,10 +343,19 @@ public class HelpScreenDialogFragment extends DialogFragment implements Expandab
arrayList.add(new MyMenuItem(R.string.instalation_troubleshooting_item)); arrayList.add(new MyMenuItem(R.string.instalation_troubleshooting_item));
arrayList.add(new MyMenuItem(R.string.techical_articles_item)); arrayList.add(new MyMenuItem(R.string.techical_articles_item));
arrayList.add(new MyMenuItem(R.string.versions_item)); arrayList.add(new MyMenuItem(R.string.versions_item));
String version = Version.getBuildAppEdition(getOsmandApplication());
if (TextUtils.isEmpty(version)) { //String version = Version.getBuildAppEdition(getOsmandApplication());
version = Version.getAppVersion(getOsmandApplication()); //if (TextUtils.isEmpty(version)) {
// version = Version.getAppVersion(getOsmandApplication());
//}
String edition = "";
if (!this.getString(R.string.app_edition).equals("")) {
edition = R.getString(R.string.shared_string_release) + " : \t" + this.getString(R.string.app_edition);
} }
String version = Version.getFullVersion(getOsmandApplication()) + "\n" + edition
// + "\n\n" + R.getString(R.string.about_content);
MyMenuItem.Builder builder = new MyMenuItem.Builder() MyMenuItem.Builder builder = new MyMenuItem.Builder()
.setTitle(R.string.shared_string_about) .setTitle(R.string.shared_string_about)
.setDescription(version); .setDescription(version);