git-svn-id: https://osmand.googlecode.com/svn/trunk@534 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8
This commit is contained in:
Victor Shcherb 2010-09-29 15:05:05 +00:00
parent f221fc3b4b
commit 9435824ffd

View file

@ -744,9 +744,14 @@ public class MapActivity extends Activity implements IMapLocationListener, Senso
@Override
protected void onResume() {
super.onResume();
if(OsmandSettings.getMapOrientation(this) != getRequestedOrientation()){
setRequestedOrientation(OsmandSettings.getMapOrientation(this));
// do nothing now (let recreate activity)
// only save map position
LatLon l = OsmandSettings.getLastKnownMapLocation(this);
mapView.setLatLon(l.getLatitude(), l.getLongitude());
mapView.setZoom(OsmandSettings.getLastKnownMapZoom(this));
return;
}
currentScreenOrientation = getWindow().getWindowManager().getDefaultDisplay().getOrientation();