Slightly modify map activity

This commit is contained in:
Victor Shcherb 2012-08-20 00:24:02 +02:00
parent 8865ce2d80
commit 8897fb31a5

View file

@ -1069,10 +1069,6 @@ public class MapActivity extends AccessibleActivity implements IMapLocationListe
public void switchRotateMapMode(){
int vl = (settings.ROTATE_MAP.get() + 1) % 3;
Location loc = getLastKnownLocation();
if(vl == OsmandSettings.ROTATE_MAP_BEARING && (loc == null || !loc.hasBearing())){
vl = (vl + 1) % 3;
}
settings.ROTATE_MAP.set(vl);
registerUnregisterSensor(getLastKnownLocation(), false);
if(settings.ROTATE_MAP.get() != OsmandSettings.ROTATE_MAP_COMPASS){