diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2016-06-22 15:22:38 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2016-06-24 16:02:06 +0300 |
commit | 8d87825476f1505c59ed6f83195d1d94d5b5f616 (patch) | |
tree | 419e7b2b1dc4cc618d72e15a90b4908da7f46394 /android | |
parent | 6d433ff0cafe85066601bea7dd7b82400d71a51a (diff) |
Review fixes.
Diffstat (limited to 'android')
-rw-r--r-- | android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java | 10 | ||||
-rw-r--r-- | android/src/com/mapswithme/util/statistics/Statistics.java | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java b/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java index e158a7b58c..4a38e382e4 100644 --- a/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java +++ b/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java @@ -392,7 +392,7 @@ public class PlacePageView extends RelativeLayout break; case BOOKING: - onBookingClick(true /* book */, mMapObject); + onBookingClick(true /* book */); break; } } @@ -464,7 +464,7 @@ public class PlacePageView extends RelativeLayout refreshPreview(); } - private void onBookingClick(final boolean book, final MapObject hotelPos) + private void onBookingClick(final boolean book) { // TODO (trashkalmar): Set correct text Utils.checkConnection(getActivity(), R.string.common_check_internet_connection_dialog, new Utils.Proc<Boolean>() @@ -481,8 +481,8 @@ public class PlacePageView extends RelativeLayout Map<String, String> params = new HashMap<>(); params.put("provider", "Booking.Com"); - params.put("hotel_lat", (hotelPos == null ? "N/A" : String.valueOf(hotelPos.getLat()))); - params.put("hotel_lon", (hotelPos == null ? "N/A" : String.valueOf(hotelPos.getLon()))); + params.put("hotel_lat", (mMapObject == null ? "N/A" : String.valueOf(mMapObject.getLat()))); + params.put("hotel_lon", (mMapObject == null ? "N/A" : String.valueOf(mMapObject.getLon()))); params.put("hotel", info.getId()); String event = (book ? Statistics.EventName.PP_SPONSORED_BOOK @@ -1012,7 +1012,7 @@ public class PlacePageView extends RelativeLayout addPlace(); break; case R.id.ll__more: - onBookingClick(false /* book */, mMapObject); + onBookingClick(false /* book */); break; case R.id.iv__bookmark_color: saveBookmarkTitle(); diff --git a/android/src/com/mapswithme/util/statistics/Statistics.java b/android/src/com/mapswithme/util/statistics/Statistics.java index 5172f9e926..4f0d736d73 100644 --- a/android/src/com/mapswithme/util/statistics/Statistics.java +++ b/android/src/com/mapswithme/util/statistics/Statistics.java @@ -270,7 +270,7 @@ public enum Statistics List<String> eventDictionary = new ArrayList<String>(); for (Map.Entry<String, String> entry : params.entrySet()) { - eventDictionary.add(entry.getKey().toString()); + eventDictionary.add(entry.getKey()); eventDictionary.add(entry.getValue()); } |