diff --git a/android/app/src/main/java/app/organicmaps/widget/placepage/PlacePageUtils.java b/android/app/src/main/java/app/organicmaps/widget/placepage/PlacePageUtils.java index fa8b714ced..05e829c54c 100644 --- a/android/app/src/main/java/app/organicmaps/widget/placepage/PlacePageUtils.java +++ b/android/app/src/main/java/app/organicmaps/widget/placepage/PlacePageUtils.java @@ -1,6 +1,7 @@ package app.organicmaps.widget.placepage; import android.content.Context; +import android.os.Build; import android.view.Menu; import android.view.View; import android.widget.PopupMenu; @@ -78,8 +79,11 @@ public class PlacePageUtils public static void copyToClipboard(Context context, View frame, String text) { Utils.copyTextToClipboard(context, text); - Utils.showSnackbarAbove(frame.getRootView().findViewById(R.id.pp_buttons_layout), frame, - context.getString(R.string.copied_to_clipboard, text)); + if (Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU) + { + Utils.showSnackbarAbove(frame.getRootView().findViewById(R.id.pp_buttons_layout), frame, + context.getString(R.string.copied_to_clipboard, text)); + } } public static void showCopyPopup(Context context, View popupAnchor, List items) diff --git a/android/app/src/main/java/app/organicmaps/widget/placepage/sections/PlacePageBookmarkFragment.java b/android/app/src/main/java/app/organicmaps/widget/placepage/sections/PlacePageBookmarkFragment.java index 35016e8d86..0398494ed1 100644 --- a/android/app/src/main/java/app/organicmaps/widget/placepage/sections/PlacePageBookmarkFragment.java +++ b/android/app/src/main/java/app/organicmaps/widget/placepage/sections/PlacePageBookmarkFragment.java @@ -1,6 +1,7 @@ package app.organicmaps.widget.placepage.sections; import android.content.Context; +import android.os.Build; import android.os.Bundle; import android.text.TextUtils; import android.text.util.Linkify; @@ -136,8 +137,11 @@ public class PlacePageBookmarkFragment extends Fragment implements View.OnClickL final Context ctx = requireContext(); Utils.copyTextToClipboard(ctx, notes); - Utils.showSnackbarAbove(mFrame.getRootView().findViewById(R.id.pp_buttons_layout), mFrame, - ctx.getString(R.string.copied_to_clipboard, notes)); + if (Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU) + { + Utils.showSnackbarAbove(mFrame.getRootView().findViewById(R.id.pp_buttons_layout), mFrame, + ctx.getString(R.string.copied_to_clipboard, notes)); + } return true; } diff --git a/android/app/src/main/java/app/organicmaps/widget/placepage/sections/PlacePhoneAdapter.java b/android/app/src/main/java/app/organicmaps/widget/placepage/sections/PlacePhoneAdapter.java index 37dda1cc03..82a33a5c31 100644 --- a/android/app/src/main/java/app/organicmaps/widget/placepage/sections/PlacePhoneAdapter.java +++ b/android/app/src/main/java/app/organicmaps/widget/placepage/sections/PlacePhoneAdapter.java @@ -1,6 +1,7 @@ package app.organicmaps.widget.placepage.sections; import android.content.Context; +import android.os.Build; import android.text.TextUtils; import android.view.LayoutInflater; import android.view.View; @@ -87,8 +88,11 @@ public class PlacePhoneAdapter extends RecyclerView.Adapter