Fix route between point dialog straight line
This commit is contained in:
parent
f94c24bb20
commit
e02d982afa
1 changed files with 6 additions and 5 deletions
|
@ -101,13 +101,14 @@ public class RouteBetweenPointsBottomSheetDialogFragment extends BottomSheetDial
|
|||
@Override
|
||||
public void onClick(View view) {
|
||||
snapToRoadEnabled = false;
|
||||
ApplicationMode mode = null;
|
||||
if ((int) view.getTag() != STRAIGHT_LINE_TAG) {
|
||||
ApplicationMode mode = modes.get((int) view.getTag());
|
||||
mode = modes.get((int) view.getTag());
|
||||
snapToRoadEnabled = true;
|
||||
Fragment fragment = getTargetFragment();
|
||||
if (fragment instanceof RouteBetweenPointsFragmentListener) {
|
||||
((RouteBetweenPointsFragmentListener) fragment).onChangeApplicationMode(mode);
|
||||
}
|
||||
}
|
||||
Fragment fragment = getTargetFragment();
|
||||
if (fragment instanceof RouteBetweenPointsFragmentListener) {
|
||||
((RouteBetweenPointsFragmentListener) fragment).onChangeApplicationMode(mode);
|
||||
}
|
||||
dismiss();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue