diff --git a/app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.java b/app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.java index 3919b20b98..35af7462d6 100644 --- a/app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.java +++ b/app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.java @@ -578,9 +578,13 @@ private void decideButtonVisibilities() { * */ private void addActionToTitle() { + title.setOnLongClickListener(view -> { + Utils.copy("place", title.getText().toString(), getContext()); + Toast.makeText(getContext(), R.string.text_copy, Toast.LENGTH_SHORT).show(); + return true; + }); + title.setOnClickListener(view -> { - Utils.copy("place", title.getText().toString(), getContext()); - Toast.makeText(getContext(), "Text copied to clipboard", Toast.LENGTH_SHORT).show(); bottomSheetListBehavior.setState(BottomSheetBehavior.STATE_HIDDEN); if (bottomSheetDetailsBehavior.getState() == BottomSheetBehavior.STATE_COLLAPSED) { bottomSheetDetailsBehavior.setState(BottomSheetBehavior.STATE_EXPANDED);