remove surplus code

This commit is contained in:
sonora 2015-10-31 16:01:10 +01:00
parent c8cc9a6330
commit edae909594

View file

@ -344,21 +344,17 @@ public class HelpScreenDialogFragment extends DialogFragment implements Expandab
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()); String releasedate = "";
//if (TextUtils.isEmpty(version)) {
// version = Version.getAppVersion(getOsmandApplication());
//}
String edition = "";
if (!this.getString(R.string.app_edition).equals("")) { if (!this.getString(R.string.app_edition).equals("")) {
edition = this.getString(R.string.shared_string_release) + " : \t" + this.getString(R.string.app_edition); releasedate = this.getString(R.string.shared_string_release) + " : \t" + this.getString(R.string.app_edition);
} }
String version = Version.getFullVersion(getOsmandApplication()) + "\n" + edition; String version = Version.getFullVersion(getOsmandApplication()) + "\n" + releasedate;
// + "\n\n" + this.getString(R.string.about_content); // + "\n\n" + this.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);
arrayList.add(builder.create()); arrayList.add(builder.create());
return arrayList; return arrayList;
} }