From 7037fbfe946c729238f523c40397876cc7aa6803 Mon Sep 17 00:00:00 2001 From: Philipp Crocoll Date: Mon, 8 Mar 2021 09:49:21 +0100 Subject: [PATCH] fix URL has two "Open URL" context menu entries --- src/keepass2android/EntryActivity.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/keepass2android/EntryActivity.cs b/src/keepass2android/EntryActivity.cs index 4cf27862..8f067424 100644 --- a/src/keepass2android/EntryActivity.cs +++ b/src/keepass2android/EntryActivity.cs @@ -888,9 +888,10 @@ namespace keepass2android popupItems.Add(new CopyToClipboardPopupMenuIcon(this, _stringViews[fieldKey])); if (isProtected) popupItems.Add(new ToggleVisibilityPopupMenuItem(this)); - if (_stringViews[fieldKey].Text.StartsWith(KeePass.AndroidAppScheme) + if (fieldKey != PwDefs.UrlField //url already has a go-to-url menu + && (_stringViews[fieldKey].Text.StartsWith(KeePass.AndroidAppScheme) || _stringViews[fieldKey].Text.StartsWith("http://") - || _stringViews[fieldKey].Text.StartsWith("https://")) + || _stringViews[fieldKey].Text.StartsWith("https://"))) { popupItems.Add(new GotoUrlMenuItem(this, fieldKey)); }