Fixed string resource for clipboard toast

This commit is contained in:
PaulStets 2018-01-27 13:48:53 +02:00
parent 3f2dfee22d
commit 937ee090fc
2 changed files with 1 additions and 2 deletions

View file

@ -2858,5 +2858,4 @@
<string name="nautical_renderer">Nautical</string> <string name="nautical_renderer">Nautical</string>
<string name="copy_location_name">Copy Point/POI name</string> <string name="copy_location_name">Copy Point/POI name</string>
<string name="toast_empty_name_error">Location has no name</string> <string name="toast_empty_name_error">Location has no name</string>
<string name="clipboard_message">Copied to clipboard</string>
</resources> </resources>

View file

@ -216,7 +216,7 @@ public class ShareDialog {
public static void sendToClipboard(Activity activity, String text) { public static void sendToClipboard(Activity activity, String text) {
ClipboardManager clipboard = (ClipboardManager) activity.getSystemService(Activity.CLIPBOARD_SERVICE); ClipboardManager clipboard = (ClipboardManager) activity.getSystemService(Activity.CLIPBOARD_SERVICE);
clipboard.setText(text); clipboard.setText(text);
Toast.makeText(activity, R.string.clipboard_message, Toast.LENGTH_LONG) Toast.makeText(activity, R.string.copied_to_clipboard, Toast.LENGTH_LONG)
.show(); .show();
} }
} }