diff --git a/OsmAnd/res/layout-land/navigate_point.xml b/OsmAnd/res/layout-land/navigate_point.xml index 593c8aef12..e1d2319f9c 100644 --- a/OsmAnd/res/layout-land/navigate_point.xml +++ b/OsmAnd/res/layout-land/navigate_point.xml @@ -1,12 +1,12 @@ + - + @@ -26,10 +26,11 @@ - + + \ No newline at end of file diff --git a/OsmAnd/res/layout/navigate_point.xml b/OsmAnd/res/layout/navigate_point.xml index 483f20d75c..317c29b855 100644 --- a/OsmAnd/res/layout/navigate_point.xml +++ b/OsmAnd/res/layout/navigate_point.xml @@ -1,13 +1,11 @@ + - - @@ -24,11 +22,12 @@ - + + \ No newline at end of file diff --git a/OsmAnd/res/layout/search_address.xml b/OsmAnd/res/layout/search_address.xml index ad8eb25487..782978c938 100644 --- a/OsmAnd/res/layout/search_address.xml +++ b/OsmAnd/res/layout/search_address.xml @@ -1,6 +1,7 @@ + @@ -9,7 +10,7 @@ android:layout_marginTop = "5dp" android:text="@string/search_address_top_text"> - + @@ -52,7 +53,7 @@ - + - - \ No newline at end of file + + \ No newline at end of file diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java index 4f9418d427..46186c0910 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java @@ -1043,7 +1043,6 @@ public class MapActivity extends Activity implements IMapLocationListener, Senso // dlg.showDialog(); Intent newIntent = new Intent(MapActivity.this, SearchActivity.class); newIntent.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT); - newIntent.putExtra(SearchActivity.TAB_INDEX_EXTRA, SearchActivity.LOCATION_TAB_INDEX); LatLon mapLoc = getMapLocation(); newIntent.putExtra(SearchActivity.SEARCH_LAT, mapLoc.getLatitude()); newIntent.putExtra(SearchActivity.SEARCH_LON, mapLoc.getLongitude()); diff --git a/OsmAnd/src/net/osmand/plus/activities/TestVoiceActivity.java b/OsmAnd/src/net/osmand/plus/activities/TestVoiceActivity.java index 43d2c2845e..4c80b37346 100644 --- a/OsmAnd/src/net/osmand/plus/activities/TestVoiceActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/TestVoiceActivity.java @@ -53,7 +53,7 @@ public class TestVoiceActivity extends Activity { // add buttons setContentView(gl); - app.showDialogInitializingCommandPlayer(this, true, new Runnable(){ + Runnable r = new Runnable(){ @Override public void run() { @@ -65,7 +65,12 @@ public class TestVoiceActivity extends Activity { } } - }); + }; + if (app.getRoutingHelper().getVoiceRouter().getPlayer() != null) { + r.run(); + } else { + app.showDialogInitializingCommandPlayer(this, true, r); + } } private void addButtons(final LinearLayout ll, CommandPlayer p) { diff --git a/OsmAnd/src/net/osmand/plus/activities/search/SearchPOIActivity.java b/OsmAnd/src/net/osmand/plus/activities/search/SearchPOIActivity.java index 769f7306bf..179d2de89f 100644 --- a/OsmAnd/src/net/osmand/plus/activities/search/SearchPOIActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/search/SearchPOIActivity.java @@ -115,7 +115,6 @@ public class SearchPOIActivity extends ListActivity implements SensorEventListen @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); - setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); setContentView(R.layout.searchpoi); uiHandler = new Handler(); diff --git a/OsmAnd/src/net/osmand/plus/voice/MediaCommandPlayerImpl.java b/OsmAnd/src/net/osmand/plus/voice/MediaCommandPlayerImpl.java index d060c290a3..78841b228f 100644 --- a/OsmAnd/src/net/osmand/plus/voice/MediaCommandPlayerImpl.java +++ b/OsmAnd/src/net/osmand/plus/voice/MediaCommandPlayerImpl.java @@ -28,7 +28,7 @@ public class MediaCommandPlayerImpl extends AbstractPrologCommandPlayer { // playing media private MediaPlayer mediaPlayer; // indicates that player is ready to play first file - private boolean playNext = true; + private volatile boolean playNext = true; private List filesToPlay = Collections.synchronizedList(new ArrayList());