try fix for devices without compass

This commit is contained in:
sonora 2014-12-24 15:23:49 +01:00
parent 58827eae19
commit 3b017e9f4d

View file

@ -162,6 +162,8 @@ public class MainMenuActivity extends BaseDownloadActivity implements OsmAndLoca
} }
getLocationProvider().addCompassListener(this); getLocationProvider().addCompassListener(this);
getLocationProvider().registerOrUnregisterCompassListener(true); getLocationProvider().registerOrUnregisterCompassListener(true);
//Looks like the next line may be needed to reliably show the DashFavoritesFragment upon app start also on devices which have no compass
updateCompassValue(0);
} }
@Override @Override