From aeb4833ad0dace4915261dccf70810f64f39c82d Mon Sep 17 00:00:00 2001 From: Philipp Crocoll Date: Tue, 6 Jan 2015 04:03:27 +0100 Subject: [PATCH] * clear combined notification when db locked by timeout * close notification drawer when clicking action button in notification --- src/keepass2android/services/CopyToClipboardService.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/keepass2android/services/CopyToClipboardService.cs b/src/keepass2android/services/CopyToClipboardService.cs index 9774fa1a..ed9c8f62 100644 --- a/src/keepass2android/services/CopyToClipboardService.cs +++ b/src/keepass2android/services/CopyToClipboardService.cs @@ -366,6 +366,7 @@ namespace keepass2android _notificationManager.Cancel(NotifyPassword); _notificationManager.Cancel(NotifyUsername); _notificationManager.Cancel(NotifyKeyboard); + _notificationManager.Cancel(NotifyCombined); _numElementsToWaitFor = 0; ClearKeyboard(true); @@ -738,6 +739,7 @@ namespace keepass2android { CopyToClipboardService.CopyValueToClipboardWithTimeout(context, username); } + context.SendBroadcast(new Intent(Intent.ActionCloseSystemDialogs)); //close notification drawer } else if (action.Equals(Intents.CopyPassword)) { @@ -746,6 +748,7 @@ namespace keepass2android { CopyToClipboardService.CopyValueToClipboardWithTimeout(context, password); } + context.SendBroadcast(new Intent(Intent.ActionCloseSystemDialogs)); //close notification drawer } else if (action.Equals(Intents.CheckKeyboard)) {