Fix version description
This commit is contained in:
parent
b6a81d1463
commit
b259c2eb8c
2 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue