Added version to dashboard in actionbar

This commit is contained in:
Bars107 2014-11-13 18:06:48 +02:00
parent 64b8c6e0a4
commit 93b89d6a81
2 changed files with 2 additions and 1 deletions

View file

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<resources>
<string name="app_name_ver">OsmAnd 1.9</string>
<string name="app_name">OsmAnd~</string>
<!--

View file

@ -37,7 +37,7 @@ public class DashboardActivity extends SherlockFragmentActivity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.dashboard);
getSupportActionBar().setTitle(R.string.app_name);
getSupportActionBar().setTitle(R.string.app_name_ver);
ColorDrawable color = new ColorDrawable(Color.parseColor("#ff8f00"));
getSupportActionBar().setBackgroundDrawable(color);
getSupportActionBar().setIcon(android.R.color.transparent);