diff options
| author | Xin Li <delphij@google.com> | 2020-07-15 17:55:04 -0700 |
|---|---|---|
| committer | Xin Li <delphij@google.com> | 2020-07-15 17:55:04 -0700 |
| commit | 8162b6e0d5fca625f2cdf0dcdc2ae8d07fb0ae53 (patch) | |
| tree | a4c2dcff0c41117c83eda96c42403db0fb3465d8 /core/java/android/inputmethodservice/InputMethodService.java | |
| parent | 5f74d605ce2d2237a78d7e259e8adaa70e6683bf (diff) | |
| parent | f65210f9cad319d3e99320672e9eb36605c25851 (diff) | |
Merge ab/12162526 into stage-aosp-rvc-ts-dev
Bug: 148878042
Change-Id: I62d48fad449cae9233fb5c0d505593b17e9b6238
Diffstat (limited to 'core/java/android/inputmethodservice/InputMethodService.java')
| -rw-r--r-- | core/java/android/inputmethodservice/InputMethodService.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/java/android/inputmethodservice/InputMethodService.java b/core/java/android/inputmethodservice/InputMethodService.java index d8b1f41c86d5..c5a11abe1136 100644 --- a/core/java/android/inputmethodservice/InputMethodService.java +++ b/core/java/android/inputmethodservice/InputMethodService.java @@ -471,6 +471,10 @@ public class InputMethodService extends AbstractInputMethodService { final ViewTreeObserver.OnComputeInternalInsetsListener mInsetsComputer = info -> { onComputeInsets(mTmpInsets); + if (!mViewsCreated) { + // The IME views are not ready, keep visible insets untouched. + mTmpInsets.visibleTopInsets = 0; + } if (isExtractViewShown()) { // In true fullscreen mode, we just say the window isn't covering // any content so we don't impact whatever is behind. @@ -601,9 +605,6 @@ public class InputMethodService extends AbstractInputMethodService { if (DEBUG) Log.v(TAG, "unbindInput(): binding=" + mInputBinding + " ic=" + mInputConnection); // Unbind input is per process per display. - // TODO(b/150902448): free-up IME surface when target is changing. - // e.g. DisplayContent#setInputMethodTarget() - removeImeSurface(); onUnbindInput(); mInputBinding = null; mInputConnection = null; |
