Updated items order
This commit is contained in:
parent
f2caf84e8b
commit
b815e4c364
1 changed files with 2 additions and 4 deletions
|
@ -562,7 +562,6 @@ public class SherpafyCustomization extends OsmAndAppCustomization {
|
||||||
if (osmandSettings.SHOW_POI_OVER_MAP.get()) {
|
if (osmandSettings.SHOW_POI_OVER_MAP.get()) {
|
||||||
adapter.item(R.string.sherpafy_disable_poi).icons(
|
adapter.item(R.string.sherpafy_disable_poi).icons(
|
||||||
R.drawable.ic_action_gremove_dark, R.drawable.ic_action_gremove_light)
|
R.drawable.ic_action_gremove_dark, R.drawable.ic_action_gremove_light)
|
||||||
.position(adapter.length() - 1)
|
|
||||||
.listen(new OnContextMenuClick() {
|
.listen(new OnContextMenuClick() {
|
||||||
@Override
|
@Override
|
||||||
public void onContextMenuClick(int itemId, int pos, boolean isChecked, DialogInterface dialog) {
|
public void onContextMenuClick(int itemId, int pos, boolean isChecked, DialogInterface dialog) {
|
||||||
|
@ -572,7 +571,6 @@ public class SherpafyCustomization extends OsmAndAppCustomization {
|
||||||
}).reg();
|
}).reg();
|
||||||
} else {
|
} else {
|
||||||
adapter.item(R.string.poi).icons(R.drawable.ic_action_layers_dark, R.drawable.ic_action_layers_light)
|
adapter.item(R.string.poi).icons(R.drawable.ic_action_layers_dark, R.drawable.ic_action_layers_light)
|
||||||
.position(adapter.length() - 1)
|
|
||||||
.listen(new OnContextMenuClick() {
|
.listen(new OnContextMenuClick() {
|
||||||
@Override
|
@Override
|
||||||
public void onContextMenuClick(int itemId, int pos, boolean isChecked, DialogInterface dialog) {
|
public void onContextMenuClick(int itemId, int pos, boolean isChecked, DialogInterface dialog) {
|
||||||
|
@ -583,7 +581,7 @@ public class SherpafyCustomization extends OsmAndAppCustomization {
|
||||||
}).reg();
|
}).reg();
|
||||||
}
|
}
|
||||||
//important info
|
//important info
|
||||||
adapter.item(R.string.sherpafy_tour_info_txt).icons(R.drawable.ic_action_info_dark, R.drawable.ic_action_info_light).position(adapter.length() - 1)
|
adapter.item(R.string.sherpafy_tour_info_txt).icons(R.drawable.ic_action_info_dark, R.drawable.ic_action_info_light)
|
||||||
.listen(new OnContextMenuClick() {
|
.listen(new OnContextMenuClick() {
|
||||||
@Override
|
@Override
|
||||||
public void onContextMenuClick(int itemId, int pos, boolean isChecked, DialogInterface dialog) {
|
public void onContextMenuClick(int itemId, int pos, boolean isChecked, DialogInterface dialog) {
|
||||||
|
@ -597,7 +595,7 @@ public class SherpafyCustomization extends OsmAndAppCustomization {
|
||||||
if (stage != null && !isStageVisited(stage.order)) {
|
if (stage != null && !isStageVisited(stage.order)) {
|
||||||
adapter.item(R.string.complete_stage)
|
adapter.item(R.string.complete_stage)
|
||||||
.icons(R.drawable.ic_action_finish_flag_dark, R.drawable.ic_action_finish_flag_light)
|
.icons(R.drawable.ic_action_finish_flag_dark, R.drawable.ic_action_finish_flag_light)
|
||||||
.position(adapter.length() - 1).listen(new OnContextMenuClick() {
|
.listen(new OnContextMenuClick() {
|
||||||
@Override
|
@Override
|
||||||
public void onContextMenuClick(int itemId, int pos, boolean isChecked, DialogInterface dialog) {
|
public void onContextMenuClick(int itemId, int pos, boolean isChecked, DialogInterface dialog) {
|
||||||
markStageAsCompleted(stage);
|
markStageAsCompleted(stage);
|
||||||
|
|
Loading…
Reference in a new issue