diff options
author | Yohei Yukawa <yukawa@google.com> | 2015-02-14 15:21:50 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2015-02-14 15:21:50 +0000 |
commit | 8f3b76cb0c7187464d58c84fd77e20a9cb4fd3d1 (patch) | |
tree | 1fbeba9c66fca76bcfe70bbb2ebc138f25da3b89 | |
parent | e9f7536cc4085bd0884eb7b72888eef980156356 (diff) | |
parent | 32acf753e8989766f67fd5300d3eb467f707cc79 (diff) | |
download | frameworks_base-8f3b76cb0c7187464d58c84fd77e20a9cb4fd3d1.zip frameworks_base-8f3b76cb0c7187464d58c84fd77e20a9cb4fd3d1.tar.gz frameworks_base-8f3b76cb0c7187464d58c84fd77e20a9cb4fd3d1.tar.bz2 |
am 83c804be: Merge "Prevent duplicated registration of OnComputeInternalInsetsListener" automerge: efd9abb
automerge: 32acf75
* commit '32acf753e8989766f67fd5300d3eb467f707cc79':
Prevent duplicated registration of OnComputeInternalInsetsListener
-rw-r--r-- | core/java/android/inputmethodservice/InputMethodService.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/java/android/inputmethodservice/InputMethodService.java b/core/java/android/inputmethodservice/InputMethodService.java index 2eb42a7..f218b65 100644 --- a/core/java/android/inputmethodservice/InputMethodService.java +++ b/core/java/android/inputmethodservice/InputMethodService.java @@ -708,6 +708,7 @@ public class InputMethodService extends AbstractInputMethodService { mRootView.setSystemUiVisibility( View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION); mWindow.setContentView(mRootView); + mRootView.getViewTreeObserver().removeOnComputeInternalInsetsListener(mInsetsComputer); mRootView.getViewTreeObserver().addOnComputeInternalInsetsListener(mInsetsComputer); if (Settings.Global.getInt(getContentResolver(), Settings.Global.FANCY_IME_ANIMATIONS, 0) != 0) { |