From b259c2eb8c91fefd3c68b7e7a86a4ae4fc15fcee Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Tue, 24 Jan 2012 00:31:14 +0100 Subject: [PATCH] Fix version description --- OsmAnd/src/net/osmand/Version.java | 5 +++++ OsmAnd/src/net/osmand/plus/activities/MainMenuActivity.java | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/Version.java b/OsmAnd/src/net/osmand/Version.java index 57f2f75102..6dbf38f29f 100644 --- a/OsmAnd/src/net/osmand/Version.java +++ b/OsmAnd/src/net/osmand/Version.java @@ -30,6 +30,11 @@ public class Version { return v.appName + " " + v.appVersion; } + public static String getAppVersion(Context ctx){ + Version v = getVersion(ctx); + return v.appVersion; + } + public static String getAppName(Context ctx){ Version v = getVersion(ctx); return v.appName; diff --git a/OsmAnd/src/net/osmand/plus/activities/MainMenuActivity.java b/OsmAnd/src/net/osmand/plus/activities/MainMenuActivity.java index 9ce79a2b36..cdf6cddd42 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MainMenuActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/MainMenuActivity.java @@ -130,7 +130,7 @@ public class MainMenuActivity extends TrackedActivity { rightview = (View) window.findViewById(R.id.SearchButton); rightview.startAnimation(getAnimation(1, 0)); - String textVersion = Version.getFullVersion(activity); + String textVersion = Version.getAppVersion(activity); final TextView textVersionView = (TextView) window.findViewById(R.id.TextVersion); textVersionView.setText(textVersion); SharedPreferences prefs = activity.getApplicationContext().getSharedPreferences("net.osmand.settings", MODE_WORLD_READABLE);