diff options
| author | Yohei Yukawa <yukawa@google.com> | 2015-09-11 18:17:11 -0700 |
|---|---|---|
| committer | Yohei Yukawa <yukawa@google.com> | 2015-09-11 18:17:11 -0700 |
| commit | ac8bdd203c18d0f99b825132cf6134dce5d12bc6 (patch) | |
| tree | 5abdf397b98b8ef67f316605a3dc0573d11f2207 /core/java/android/inputmethodservice/InputMethodService.java | |
| parent | 5e65d1a9918fd6dbc60f0a073ca21af61a565f96 (diff) | |
Mechanical merge of nested if statements.
This is just a mechanical merge of nested if statements with a dead code
removal. Nothing is changed logically.
Bug: 22285167
Change-Id: I28c1de84635b68108b25ec32ec58de2128758512
Diffstat (limited to 'core/java/android/inputmethodservice/InputMethodService.java')
| -rw-r--r-- | core/java/android/inputmethodservice/InputMethodService.java | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/core/java/android/inputmethodservice/InputMethodService.java b/core/java/android/inputmethodservice/InputMethodService.java index 112ae1076aa3..5d667e1fa3f2 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"); |
