Updated items order

This commit is contained in:
Denis 2014-09-26 14:38:48 +03:00
parent f2caf84e8b
commit b815e4c364

View file

@ -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);