Fix version description

This commit is contained in:
Victor Shcherb 2012-01-24 00:31:14 +01:00
parent b6a81d1463
commit b259c2eb8c
2 changed files with 6 additions and 1 deletions

View file

@ -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;

View file

@ -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);