Slightly modify map activity
This commit is contained in:
parent
8865ce2d80
commit
8897fb31a5
1 changed files with 0 additions and 4 deletions
|
@ -1069,10 +1069,6 @@ public class MapActivity extends AccessibleActivity implements IMapLocationListe
|
||||||
|
|
||||||
public void switchRotateMapMode(){
|
public void switchRotateMapMode(){
|
||||||
int vl = (settings.ROTATE_MAP.get() + 1) % 3;
|
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);
|
settings.ROTATE_MAP.set(vl);
|
||||||
registerUnregisterSensor(getLastKnownLocation(), false);
|
registerUnregisterSensor(getLastKnownLocation(), false);
|
||||||
if(settings.ROTATE_MAP.get() != OsmandSettings.ROTATE_MAP_COMPASS){
|
if(settings.ROTATE_MAP.get() != OsmandSettings.ROTATE_MAP_COMPASS){
|
||||||
|
|
Loading…
Reference in a new issue