summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYohei Yukawa <yukawa@google.com>2015-09-14 03:50:22 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-09-14 03:50:22 +0000
commit686e03454b461484b4b51d0ff10c6361aee8c72b (patch)
treed25dc3a264a93ea6dd105718614704204451c948
parentf849e35f811115c96bf411d355752399b4f92e33 (diff)
parentac8bdd203c18d0f99b825132cf6134dce5d12bc6 (diff)
Merge "Mechanical merge of nested if statements."
-rw-r--r--core/java/android/inputmethodservice/InputMethodService.java12
1 files changed, 3 insertions, 9 deletions
diff --git a/core/java/android/inputmethodservice/InputMethodService.java b/core/java/android/inputmethodservice/InputMethodService.java
index aad759e0f734..6e28982fe4f8 100644
--- a/core/java/android/inputmethodservice/InputMethodService.java
+++ b/core/java/android/inputmethodservice/InputMethodService.java
@@ -1456,15 +1456,9 @@ public class InputMethodService extends AbstractInputMethodService {
final int previousImeWindowStatus =
(mWindowVisible ? IME_ACTIVE : 0) | (isInputViewShown() ? IME_VISIBLE : 0);
mWindowVisible = true;
- if (!mShowInputRequested) {
- if (mInputStarted) {
- if (showInput) {
- doShowInput = true;
- mShowInputRequested = true;
- }
- }
- } else {
- showInput = true;
+ if (!mShowInputRequested && mInputStarted && showInput) {
+ doShowInput = true;
+ mShowInputRequested = true;
}
if (DEBUG) Log.v(TAG, "showWindow: updating UI");