From c35cf56d8ae8d7c75e704aea7955853ad36e34ff Mon Sep 17 00:00:00 2001 From: Philipp Crocoll Date: Mon, 19 Aug 2019 14:32:29 +0200 Subject: [PATCH] fix entry notification being closed immediately after opening when there are TOTP fields in the entry (closes #799) --- src/keepass2android/Totp/UpdateTotpTimerTask.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/keepass2android/Totp/UpdateTotpTimerTask.cs b/src/keepass2android/Totp/UpdateTotpTimerTask.cs index cefdca4d..a79377d5 100644 --- a/src/keepass2android/Totp/UpdateTotpTimerTask.cs +++ b/src/keepass2android/Totp/UpdateTotpTimerTask.cs @@ -61,7 +61,7 @@ namespace PluginTOTP App.Kp2a.LastOpenedEntry.OutputStrings.Set(_totp, new ProtectedString(true, totp)); Intent updateKeyboardIntent = new Intent(_context, typeof(CopyToClipboardService)); updateKeyboardIntent.SetAction(Intents.UpdateKeyboard); - updateKeyboardIntent.PutExtra("entry", App.Kp2a.LastOpenedEntry.Uuid.ToHexString()); + updateKeyboardIntent.PutExtra(EntryActivity.KeyEntry, new ElementAndDatabaseId(App.Kp2a.FindDatabaseForElement(App.Kp2a.LastOpenedEntry.Entry), App.Kp2a.LastOpenedEntry.Entry).FullId); _context.StartService(updateKeyboardIntent); }