small re-sorting of configure screen menu
This commit is contained in:
parent
ad2bd060ed
commit
9c9a5272a6
1 changed files with 11 additions and 10 deletions
|
@ -76,6 +76,7 @@ public class OsmandExtraSettings extends OsmandPlugin {
|
||||||
b.show();
|
b.show();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
final MapWidgetRegInfo showRuler = mapInfoControls.registerAppearanceWidget(R.drawable.widget_ruler, R.string.map_widget_show_ruler,
|
final MapWidgetRegInfo showRuler = mapInfoControls.registerAppearanceWidget(R.drawable.widget_ruler, R.string.map_widget_show_ruler,
|
||||||
"showRuler", view.getSettings().SHOW_RULER);
|
"showRuler", view.getSettings().SHOW_RULER);
|
||||||
showRuler.setStateChangeListener(new Runnable() {
|
showRuler.setStateChangeListener(new Runnable() {
|
||||||
|
@ -86,16 +87,6 @@ public class OsmandExtraSettings extends OsmandPlugin {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
final MapWidgetRegInfo transparent = mapInfoControls.registerAppearanceWidget(R.drawable.widget_transparent_skin, R.string.map_widget_transparent,
|
|
||||||
"transparent", view.getSettings().TRANSPARENT_MAP_THEME);
|
|
||||||
transparent.setStateChangeListener(new Runnable() {
|
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
view.getSettings().TRANSPARENT_MAP_THEME.set(!view.getSettings().TRANSPARENT_MAP_THEME.get());
|
|
||||||
mapInfoLayer.recreateControls();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
final MapWidgetRegInfo showDestinationArrow = mapInfoControls.registerAppearanceWidget(R.drawable.widget_show_destination_arrow, R.string.map_widget_show_destination_arrow,
|
final MapWidgetRegInfo showDestinationArrow = mapInfoControls.registerAppearanceWidget(R.drawable.widget_show_destination_arrow, R.string.map_widget_show_destination_arrow,
|
||||||
"show_destination_arrow", view.getSettings().SHOW_DESTINATION_ARROW);
|
"show_destination_arrow", view.getSettings().SHOW_DESTINATION_ARROW);
|
||||||
showDestinationArrow.setStateChangeListener(new Runnable() {
|
showDestinationArrow.setStateChangeListener(new Runnable() {
|
||||||
|
@ -106,6 +97,16 @@ public class OsmandExtraSettings extends OsmandPlugin {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
final MapWidgetRegInfo transparent = mapInfoControls.registerAppearanceWidget(R.drawable.widget_transparent_skin, R.string.map_widget_transparent,
|
||||||
|
"transparent", view.getSettings().TRANSPARENT_MAP_THEME);
|
||||||
|
transparent.setStateChangeListener(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
view.getSettings().TRANSPARENT_MAP_THEME.set(!view.getSettings().TRANSPARENT_MAP_THEME.get());
|
||||||
|
mapInfoLayer.recreateControls();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// final MapInfoControlRegInfo posMap = mapInfoControls.registerAppearanceWidget(R.drawable.widget_position_marker, R.string.position_on_map,
|
// final MapInfoControlRegInfo posMap = mapInfoControls.registerAppearanceWidget(R.drawable.widget_position_marker, R.string.position_on_map,
|
||||||
// "position_on_map", textSizePref);
|
// "position_on_map", textSizePref);
|
||||||
// posMap.setStateChangeListener(new Runnable() {
|
// posMap.setStateChangeListener(new Runnable() {
|
||||||
|
|
Loading…
Reference in a new issue