diff --git a/OsmAnd/res/layout/dash_map_fragment.xml b/OsmAnd/res/layout/dash_map_fragment.xml index 8ff5c853b7..750ff7b7a7 100644 --- a/OsmAnd/res/layout/dash_map_fragment.xml +++ b/OsmAnd/res/layout/dash_map_fragment.xml @@ -9,6 +9,7 @@ diff --git a/OsmAnd/res/layout/search_activity_single.xml b/OsmAnd/res/layout/search_activity_single.xml new file mode 100644 index 0000000000..206e116ab0 --- /dev/null +++ b/OsmAnd/res/layout/search_activity_single.xml @@ -0,0 +1,9 @@ + + + + \ No newline at end of file diff --git a/OsmAnd/res/layout/search_main.xml b/OsmAnd/res/layout/search_main.xml index 59b814f93b..f4a9a36ce2 100644 --- a/OsmAnd/res/layout/search_main.xml +++ b/OsmAnd/res/layout/search_main.xml @@ -1,6 +1,7 @@ diff --git a/OsmAnd/src/net/osmand/plus/activities/FavouritesActivity.java b/OsmAnd/src/net/osmand/plus/activities/FavouritesActivity.java index 160848340d..aca210aee9 100644 --- a/OsmAnd/src/net/osmand/plus/activities/FavouritesActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/FavouritesActivity.java @@ -71,9 +71,7 @@ public class FavouritesActivity extends ActionBarActivity { } if(!hasGpx) { - FrameLayout fl = new FrameLayout(this); - fl.setId(R.id.layout); - setContentView(fl); + setContentView(R.layout.search_activity_single); getSupportFragmentManager().beginTransaction().add(R.id.layout, new FavouritesTreeFragment()).commit(); } else { setContentView(R.layout.tab_content); diff --git a/OsmAnd/src/net/osmand/plus/activities/search/SearchActivity.java b/OsmAnd/src/net/osmand/plus/activities/search/SearchActivity.java index 55723f48e5..b13e978a9f 100644 --- a/OsmAnd/src/net/osmand/plus/activities/search/SearchActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/search/SearchActivity.java @@ -100,7 +100,6 @@ public class SearchActivity extends ActionBarActivity implements OsmAndLocationL ((OsmandApplication) getApplication()).applyTheme(this); super.onCreate(savedInstanceState); long t = System.currentTimeMillis(); - //getSherlock().setUiOptions(ActivityInfo.UIOPTION_SPLIT_ACTION_BAR_WHEN_NARROW); getSupportActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_LIST); setContentView(R.layout.search_main); settings = ((OsmandApplication) getApplication()).getSettings(); @@ -142,9 +141,7 @@ public class SearchActivity extends ActionBarActivity implements OsmAndLocationL mTabsAdapter.addTab(transportTab, getFragment(TRANSPORT_TAB_INDEX), null); tabHost.setCurrentTab(tab); } else { - FrameLayout fl = new FrameLayout(this); - fl.setId(R.id.layout); - setContentView(fl); + setContentView(R.layout.search_activity_single); Class cl = getFragment(tab); try { getSupportFragmentManager().beginTransaction().replace(R.id.layout, (Fragment) cl.newInstance()).commit();