Fix #5391
This commit is contained in:
parent
a9be6dd256
commit
cebb6001d4
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue