Skip to content

Nearby: Copy the place name on long click #3558

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
gupta-anmol opened this issue Mar 20, 2020 · 4 comments · Fixed by #3609
Closed

Nearby: Copy the place name on long click #3558

gupta-anmol opened this issue Mar 20, 2020 · 4 comments · Fixed by #3609

Comments

@gupta-anmol
Copy link
Contributor

gupta-anmol commented Mar 20, 2020

Summary:

In Nearby, copy the place name to clipboard on long click, instead of just a normal click.

How can we reproduce the issue?

Open Nearby. Select any location pin. Tap on the place name.

What did you expect the app to do, and what did you see instead?

Currently, a normal click also copies the text to clipboard. And it is very annoying because the toast appears whenever we expand or collapse the place information (see gif below).

It was first introduced through issue #2405. Clearly, it was always intended to be a copy on long click. However, this was changed (most probably by mistake) when these commits were made, and the code from NearbyMapFragment.java was shifted to NearbyParentFragment.java.

Screen-shots:

screen

Would you like to work on the issue?

Yes.

@macgills
Copy link
Contributor

Long click always hides a feature for me, the benefit here is if people do try to select the text by long pressing on it we get rid of the need to deal with highlighting. If we wish to surface this functionality better an explicit copy button could be used like the github icon
image
or the text copy itself

@nicolas-raoul
Copy link
Member

@6point022 I agree that it is annoying now. Good enhancement idea! :-)

Since it is a very non-vital feature, I don't think we need to surface it more.
Actually the Google Maps app does not surface it either, but the place name is actually copyable via long-press.

@gupta-anmol
Copy link
Contributor Author

@nicolas-raoul Let me know if the proposed solution (changing it to a long click) is fine and I will create a PR. :)

@nicolas-raoul
Copy link
Member

Yes, it is fine. Thanks! :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants