fix 73
git-svn-id: https://osmand.googlecode.com/svn/trunk@534 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8
This commit is contained in:
parent
f221fc3b4b
commit
9435824ffd
1 changed files with 6 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue