fix build

This commit is contained in:
sonora 2014-08-29 17:58:19 +02:00
parent f5d35c84d5
commit ec75ca5593

View file

@ -265,7 +265,8 @@ public class MapViewTrackingUtilities implements OsmAndLocationListener, IMapLoc
}
public void switchRotateMapMode(){
String resId = R.string.rotate_map_to_bearing + ":\n" + R.string.rotate_map_none_opt;
//TODO: Display Toast R.string.rotate_map_to_bearing + ":\n" + R.string.rotate_map_none_opt
int resId = R.string.rotate_map_none_opt;
if (settings.ROTATE_MAP.get() == OsmandSettings.ROTATE_MAP_NONE && mapView.getRotate() != 0) {
// reset manual rotation
} else {
@ -273,9 +274,9 @@ public class MapViewTrackingUtilities implements OsmAndLocationListener, IMapLoc
settings.ROTATE_MAP.set(vl);
if (settings.ROTATE_MAP.get() == OsmandSettings.ROTATE_MAP_COMPASS) {
resId = R.string.rotate_map_to_bearing + ":\n" + R.string.rotate_map_compass_opt;
resId = R.string.rotate_map_compass_opt;
} else if (settings.ROTATE_MAP.get() == OsmandSettings.ROTATE_MAP_BEARING) {
resId = R.string.rotate_map_to_bearing + ":\n" + R.string.rotate_map_bearing_opt;
resId = R.string.rotate_map_bearing_opt;
}
}
app.showShortToastMessage(resId);