This commit is contained in:
Chumva 2018-05-14 14:44:47 +03:00
parent a9be6dd256
commit cebb6001d4

View file

@ -100,7 +100,12 @@ public class AmenityMenuBuilder extends MenuBuilder {
ll.setOnLongClickListener(new View.OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
String textToCopy = !Algorithms.isEmpty(textPrefix) ? textPrefix + ": " + txt : txt;
String textToCopy;
if (txt.contains(".wikipedia.org/w")) {
textToCopy = txt;
} else {
textToCopy = !Algorithms.isEmpty(textPrefix) ? textPrefix + ": " + txt : txt;
}
copyToClipboard(textToCopy, view.getContext());
return true;
}