From c19326dc3c76ccb997d9b5afa7a83b89f22af1d9 Mon Sep 17 00:00:00 2001 From: Philipp Crocoll Date: Mon, 14 Aug 2017 09:28:08 +0200 Subject: [PATCH] warning that clearing of clipboard might not work on all devices. (TODO check if this really works. seems like there is an issue with the build system not adding the string resource correctly) --- src/keepass2android/Resources/values/strings.xml | 5 ++++- src/keepass2android/services/CopyToClipboardService.cs | 6 ++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/keepass2android/Resources/values/strings.xml b/src/keepass2android/Resources/values/strings.xml index 91128776..456515ac 100644 --- a/src/keepass2android/Resources/values/strings.xml +++ b/src/keepass2android/Resources/values/strings.xml @@ -64,7 +64,6 @@ Brackets Cancel Clipboard cleared. - Make sure this works on your system and consider using the built-in keyboard if not. @@ -1009,4 +1008,8 @@ Initial public release Do not accept invalid certificates + + Make sure this works on your system and consider using the built-in keyboard if not. + + diff --git a/src/keepass2android/services/CopyToClipboardService.cs b/src/keepass2android/services/CopyToClipboardService.cs index 7ee1478b..ee278733 100644 --- a/src/keepass2android/services/CopyToClipboardService.cs +++ b/src/keepass2android/services/CopyToClipboardService.cs @@ -639,9 +639,11 @@ namespace keepass2android Util.CopyToClipboard(_service, ""); _handler.Post(() => { + string message = _service.GetString(Resource.String.ClearClipboard) + " " + + _service.GetString(Resource.String.ClearClipboardWarning); + Android.Util.Log.Debug("KP2A", message); Toast.MakeText(_service, - _service.GetString( Resource.String.ClearClipboard) + " " - + _service.GetString(Resource.String.ClearClipboardWarning), + message, ToastLength.Long).Show(); }); }