File tree 1 file changed +6
-2
lines changed
app/src/main/java/fr/free/nrw/commons/nearby/fragments
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -578,9 +578,13 @@ private void decideButtonVisibilities() {
578
578
*
579
579
*/
580
580
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
+
581
587
title .setOnClickListener (view -> {
582
- Utils .copy ("place" , title .getText ().toString (), getContext ());
583
- Toast .makeText (getContext (), "Text copied to clipboard" , Toast .LENGTH_SHORT ).show ();
584
588
bottomSheetListBehavior .setState (BottomSheetBehavior .STATE_HIDDEN );
585
589
if (bottomSheetDetailsBehavior .getState () == BottomSheetBehavior .STATE_COLLAPSED ) {
586
590
bottomSheetDetailsBehavior .setState (BottomSheetBehavior .STATE_EXPANDED );
You can’t perform that action at this time.
0 commit comments