summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Ziqi Chen <czq@google.com> 2022-11-24 15:53:51 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2022-11-24 15:53:51 +0000
commitf2dc85e665ef25d5e9b59183a3bfd891f41f2d7f (patch)
tree6893a69cf25f42c47cb6211549217ab59fab25f2
parente2fa9f4b72a8f8705fc569d44d47cc9d37272057 (diff)
parent9e3642a928042aef03c2686de485bfcd5bb34af0 (diff)
Merge "Fix bug of keyboard hidden after rotating to landscape mode."
-rw-r--r--core/java/android/inputmethodservice/InputMethodService.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/java/android/inputmethodservice/InputMethodService.java b/core/java/android/inputmethodservice/InputMethodService.java
index bf4fc4a72fdc..fb66cb9cfcc6 100644
--- a/core/java/android/inputmethodservice/InputMethodService.java
+++ b/core/java/android/inputmethodservice/InputMethodService.java
@@ -2766,12 +2766,12 @@ public class InputMethodService extends AbstractInputMethodService {
return false;
}
if ((flags&InputMethod.SHOW_EXPLICIT) == 0) {
- if (!configChange && onEvaluateFullscreenMode()) {
+ if (!configChange && onEvaluateFullscreenMode() && !isInputViewShown()) {
// Don't show if this is not explicitly requested by the user and
- // the input method is fullscreen. That would be too disruptive.
- // However, we skip this change for a config change, since if
- // the IME is already shown we do want to go into fullscreen
- // mode at this point.
+ // the input method is fullscreen unless it is already shown. That
+ // would be too disruptive. However, we skip this change for a
+ // config change, since if the IME is already shown we do want to
+ // go into fullscreen mode at this point.
return false;
}
if (!mSettingsObserver.shouldShowImeWithHardKeyboard() &&