refactored some code

This commit is contained in:
Chumva 2018-03-15 13:10:33 +02:00
parent 0f2986283a
commit 5e9ad3a074

View file

@ -36,9 +36,6 @@ public class FavouritesBottomSheetMenuFragment extends MenuBottomSheetDialogFrag
private static final String IS_SORTED = "sorted"; private static final String IS_SORTED = "sorted";
private static final String SORTED_BY_TYPE = "sortedByType"; private static final String SORTED_BY_TYPE = "sortedByType";
boolean target;
boolean intermediate;
private Location location; private Location location;
private Float heading; private Float heading;
private List<FavouritePoint> favouritePoints; private List<FavouritePoint> favouritePoints;
@ -48,6 +45,8 @@ public class FavouritesBottomSheetMenuFragment extends MenuBottomSheetDialogFrag
private boolean isSorted = false; private boolean isSorted = false;
private boolean locationUpdateStarted; private boolean locationUpdateStarted;
private boolean compassUpdateAllowed = true; private boolean compassUpdateAllowed = true;
private boolean target;
private boolean intermediate;
private BaseBottomSheetItem title; private BaseBottomSheetItem title;
private MapRouteInfoMenu routeMenu; private MapRouteInfoMenu routeMenu;
@ -257,6 +256,4 @@ public class FavouritesBottomSheetMenuFragment extends MenuBottomSheetDialogFrag
super.onCloseRowClickAction(); super.onCloseRowClickAction();
routeMenu.setupSpinners(target, intermediate); routeMenu.setupSpinners(target, intermediate);
} }
} }