From 8c1cc9a47559919745f570e74e73ca11dff08ce1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Sch=C3=A4ttgen?= Date: Wed, 11 Sep 2024 14:03:34 +0200 Subject: [PATCH] Prevent copying when revealing code --- .../com/beemdevelopment/aegis/ui/views/EntryAdapter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/beemdevelopment/aegis/ui/views/EntryAdapter.java b/app/src/main/java/com/beemdevelopment/aegis/ui/views/EntryAdapter.java index 56f521e25..d3c0cbe10 100644 --- a/app/src/main/java/com/beemdevelopment/aegis/ui/views/EntryAdapter.java +++ b/app/src/main/java/com/beemdevelopment/aegis/ui/views/EntryAdapter.java @@ -556,11 +556,11 @@ public void onClick(View v) { if (_highlightEntry || _tempHighlightEntry || _tapToReveal) { if (_focusedEntry == entry) { resetFocus(); - - // Prevent copying when singletap is set and focus is reset - handled = _copyBehavior == CopyBehavior.SINGLETAP; } else { focusEntry(entry, _tapToRevealTime); + + // Prevent copying when singletap is set and the entry is being revealed + handled = _copyBehavior == CopyBehavior.SINGLETAP && _tapToReveal; } }