commit
d7d5ea7ee7
1 changed files with 19 additions and 20 deletions
|
@ -502,27 +502,26 @@ public class WaypointDialogHelper {
|
|||
.create();
|
||||
items.add(reorderStartAndFinishItem);
|
||||
|
||||
BaseBottomSheetItem reorderAllItems = new SimpleBottomSheetItem.Builder()
|
||||
.setIcon(getContentIcon(R.drawable.ic_action_sort_reverse_order))
|
||||
.setTitle(getString(R.string.reverse_all_points))
|
||||
.setLayoutId(R.layout.bottom_sheet_item_simple)
|
||||
.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
MapActivity mapActivity = getMapActivity();
|
||||
if (mapActivity != null) {
|
||||
WaypointDialogHelper.reverseAllPoints(
|
||||
app,
|
||||
mapActivity,
|
||||
mapActivity.getDashboard().getWaypointDialogHelper()
|
||||
);
|
||||
if (!Algorithms.isEmpty(targetsHelper.getIntermediatePoints())) {
|
||||
BaseBottomSheetItem reorderAllItems = new SimpleBottomSheetItem.Builder()
|
||||
.setIcon(getContentIcon(R.drawable.ic_action_sort_reverse_order))
|
||||
.setTitle(getString(R.string.reverse_all_points))
|
||||
.setLayoutId(R.layout.bottom_sheet_item_simple)
|
||||
.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
MapActivity mapActivity = getMapActivity();
|
||||
if (mapActivity != null) {
|
||||
WaypointDialogHelper.reverseAllPoints(
|
||||
app,
|
||||
mapActivity,
|
||||
mapActivity.getDashboard().getWaypointDialogHelper()
|
||||
);
|
||||
}
|
||||
dismiss();
|
||||
}
|
||||
dismiss();
|
||||
}
|
||||
})
|
||||
.create();
|
||||
int intermediateSize = targetsHelper.getIntermediatePoints().size();
|
||||
if (intermediateSize > 1) {
|
||||
})
|
||||
.create();
|
||||
items.add(reorderAllItems);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue