File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
app/src/main/java/fr/free/nrw/commons/nearby/fragments Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -578,9 +578,13 @@ private void decideButtonVisibilities() {
578578 *
579579 */
580580 private void addActionToTitle () {
581+ title .setOnLongClickListener (view -> {
582+ Utils .copy ("place" , title .getText ().toString (), getContext ());
583+ Toast .makeText (getContext (), R .string .text_copy , Toast .LENGTH_SHORT ).show ();
584+ return true ;
585+ });
586+
581587 title .setOnClickListener (view -> {
582- Utils .copy ("place" , title .getText ().toString (), getContext ());
583- Toast .makeText (getContext (), "Text copied to clipboard" , Toast .LENGTH_SHORT ).show ();
584588 bottomSheetListBehavior .setState (BottomSheetBehavior .STATE_HIDDEN );
585589 if (bottomSheetDetailsBehavior .getState () == BottomSheetBehavior .STATE_COLLAPSED ) {
586590 bottomSheetDetailsBehavior .setState (BottomSheetBehavior .STATE_EXPANDED );
You can’t perform that action at this time.
0 commit comments