From 1c9b94efbc61b2409564322db589a8f31a0dd3c7 Mon Sep 17 00:00:00 2001 From: Eric House Date: Wed, 24 Feb 2021 20:15:58 -0800 Subject: [PATCH] hide keyboard when filter run and when filter closed --- .../java/org/eehouse/android/xw4/DictBrowseDelegate.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DictBrowseDelegate.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DictBrowseDelegate.java index dc8219dec..c690aaa70 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DictBrowseDelegate.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DictBrowseDelegate.java @@ -263,6 +263,9 @@ public class DictBrowseDelegate extends DelegateBase { m_browseState.m_expanded = nowExpanded; setShowConfig(); + if ( !nowExpanded ) { + hideSoftKeyboard(); + } } } ) .setExpanded( m_browseState.m_expanded ); @@ -467,7 +470,6 @@ public class DictBrowseDelegate extends DelegateBase @Override public boolean enterPressed() { - hideSoftKeyboard(); useButtonClicked(); return true; } @@ -645,6 +647,7 @@ public class DictBrowseDelegate extends DelegateBase if ( !pending ) { storeBrowseState(); replaceIter( false ); + hideSoftKeyboard(); } }