From 1b62ba2f1dc8ea312de87afd64b974e35c5979ef Mon Sep 17 00:00:00 2001 From: "S. Kozyr" Date: Mon, 17 Oct 2022 19:18:54 +0300 Subject: [PATCH] Changed Snack bar anchor view Signed-off-by: S. Kozyr --- .../com/mapswithme/maps/widget/placepage/PlacePageView.java | 4 ++-- .../mapswithme/maps/widget/placepage/PlacePhoneAdapter.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java b/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java index 8da995521f..9de26b2a79 100644 --- a/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java +++ b/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java @@ -1526,7 +1526,7 @@ public class PlacePageView extends NestedScrollViewClickFixed { Utils.copyTextToClipboard(ctx, items.get(0)); Utils.showSnackbarAbove(mDetails, - getRootView().findViewById(R.id.menu_frame), + getRootView().findViewById(R.id.pp_buttons_layout), ctx.getString(R.string.copied_to_clipboard, items.get(0))); } else @@ -1542,7 +1542,7 @@ public class PlacePageView extends NestedScrollViewClickFixed final int id = item.getItemId(); Utils.copyTextToClipboard(ctx, items.get(id)); Utils.showSnackbarAbove(mDetails, - getRootView().findViewById(R.id.menu_frame), + getRootView().findViewById(R.id.pp_buttons_layout), ctx.getString(R.string.copied_to_clipboard, items.get(id))); return true; }); diff --git a/android/src/com/mapswithme/maps/widget/placepage/PlacePhoneAdapter.java b/android/src/com/mapswithme/maps/widget/placepage/PlacePhoneAdapter.java index 8b78df24db..e825d8dc27 100644 --- a/android/src/com/mapswithme/maps/widget/placepage/PlacePhoneAdapter.java +++ b/android/src/com/mapswithme/maps/widget/placepage/PlacePhoneAdapter.java @@ -99,7 +99,7 @@ public class PlacePhoneAdapter extends RecyclerView.Adapter