diff --git a/OsmAnd/res/values/strings.xml b/OsmAnd/res/values/strings.xml index 85a449b37d..1415f2214b 100644 --- a/OsmAnd/res/values/strings.xml +++ b/OsmAnd/res/values/strings.xml @@ -9,6 +9,8 @@ 3. All your modified/created strings are in the top of the file (to make easier find what\'s translated). PLEASE: Have a look at http://code.google.com/p/osmand/wiki/UIConsistency, it may really improve your and our work :-) Thx - Hardy --> + Track + All tracks My Favorites My Data My Data diff --git a/OsmAnd/src/net/osmand/plus/activities/FavouritesActivity.java b/OsmAnd/src/net/osmand/plus/activities/FavouritesActivity.java index 4c973909cd..e9baca2181 100644 --- a/OsmAnd/src/net/osmand/plus/activities/FavouritesActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/FavouritesActivity.java @@ -31,6 +31,8 @@ import com.actionbarsherlock.view.Window; public class FavouritesActivity extends SherlockFragmentActivity { private static final String FAVOURITES_INFO = "FAVOURITES_INFO"; + private static final String TRACKS = "TRACKS"; + private static final String SELECTED_TRACK = "SELECTED_TRACK"; private TabsAdapter mTabsAdapter; @@ -55,7 +57,12 @@ public class FavouritesActivity extends SherlockFragmentActivity { mTabsAdapter = new TabsAdapter(this, tabHost, mViewPager, settings); mTabsAdapter.addTab(tabHost.newTabSpec(FAVOURITES_INFO).setIndicator(getString(R.string.my_favorites)), FavouritesTreeFragment.class, null); + mTabsAdapter.addTab(tabHost.newTabSpec(TRACKS).setIndicator(getString(R.string.my_tracks)), + FavouritesTreeFragment.class, null); + mTabsAdapter.addTab(tabHost.newTabSpec(SELECTED_TRACK).setIndicator(getString(R.string.selected_track)), + FavouritesTreeFragment.class, null); tabHost.setCurrentTab(tab); + // getSupportActionBar().setIcon(R.drawable.tab_search_favorites_icon); } diff --git a/OsmAnd/src/net/osmand/plus/activities/OsmandExpandableListFragment.java b/OsmAnd/src/net/osmand/plus/activities/OsmandExpandableListFragment.java index efeee59b05..e27da9f22b 100644 --- a/OsmAnd/src/net/osmand/plus/activities/OsmandExpandableListFragment.java +++ b/OsmAnd/src/net/osmand/plus/activities/OsmandExpandableListFragment.java @@ -27,6 +27,7 @@ public abstract class OsmandExpandableListFragment extends SherlockFragment impl return (OsmandApplication)getActivity().getApplication(); } + @Override public View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, Bundle savedInstanceState) { View v = createView(inflater, container); listView = (ExpandableListView) v.findViewById(android.R.id.list); @@ -38,6 +39,7 @@ public abstract class OsmandExpandableListFragment extends SherlockFragment impl } public View createView(android.view.LayoutInflater inflater, android.view.ViewGroup container) { + setHasOptionsMenu(true); return inflater.inflate(R.layout.expandable_list, container, false); }