Clear clipboard fix

This commit is contained in:
Philipp Crocoll 2016-02-16 11:53:59 +01:00
parent 118bd4f6ee
commit 42fc18b4e0

View File

@ -84,6 +84,9 @@ namespace keepass2android
public static void CopyToClipboard(Context context, String text) {
Android.Text.ClipboardManager clipboard = (Android.Text.ClipboardManager) context.GetSystemService(Context.ClipboardService);
clipboard.Text = text;
//some devices don't accept empty strings. Replace with *** then.
if (clipboard.Text == "")
clipboard.Text = "***";
}
public static void GotoUrl(Context context, String url) {