From b4191858e17c4b7a900b5d3ecfa6f618afe4bce8 Mon Sep 17 00:00:00 2001 From: Roman Romanov Date: Fri, 30 Dec 2016 14:15:11 +0400 Subject: [PATCH] [android] Review fixes --- .../mapswithme/maps/widget/placepage/PlacePageButtons.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/android/src/com/mapswithme/maps/widget/placepage/PlacePageButtons.java b/android/src/com/mapswithme/maps/widget/placepage/PlacePageButtons.java index 8ab5faa618..2c1be0cbdd 100644 --- a/android/src/com/mapswithme/maps/widget/placepage/PlacePageButtons.java +++ b/android/src/com/mapswithme/maps/widget/placepage/PlacePageButtons.java @@ -201,14 +201,14 @@ final class PlacePageButtons if (to > from && to >= MAX_BUTTONS) Collections.swap(res, from, to); - preserveNavigationButtons(res, Item.CALL); - preserveNavigationButtons(res, Item.BOOKING); + preserveRoutingButtons(res, Item.CALL); + preserveRoutingButtons(res, Item.BOOKING); } return res; } - private void preserveNavigationButtons(@NonNull List items, @NonNull Item itemToShift) + private void preserveRoutingButtons(@NonNull List items, @NonNull Item itemToShift) { if (!RoutingController.get().isNavigating() && !RoutingController.get().isPlanning()) return;