diff options
| author | Jorim Jaggi <jjaggi@google.com> | 2020-01-29 13:11:46 +0100 |
|---|---|---|
| committer | Jorim Jaggi <jjaggi@google.com> | 2020-02-01 12:51:42 +0100 |
| commit | 1f08f649c891ebd353e078be517cfbf3a0d7819d (patch) | |
| tree | 43977c715f447c48fb8a8343552ad3c8b1073565 /core/java/android/view/WindowManager.java | |
| parent | b29730fc9b687605d4e3cadd3d27bc98d529867c (diff) | |
Replace OnContentApplyWindowInsetsListener with simple boolean
The concept will move into the support library (androidx), so in
the framework we only need a simple boolean to toggle the default
behavior.
Also remove redundant methods on WIC to control IME.
Bug: 143556682
Bug: 118118435
Test: WindowTest CTS
Change-Id: I30fbffdfbe79a57b0f4166f0657c78370c7bcf02
Diffstat (limited to 'core/java/android/view/WindowManager.java')
| -rw-r--r-- | core/java/android/view/WindowManager.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/java/android/view/WindowManager.java b/core/java/android/view/WindowManager.java index a6450a10561b..dad767142ba1 100644 --- a/core/java/android/view/WindowManager.java +++ b/core/java/android/view/WindowManager.java @@ -80,6 +80,7 @@ import android.os.Parcelable; import android.text.TextUtils; import android.util.Log; import android.util.proto.ProtoOutputStream; +import android.view.View.OnApplyWindowInsetsListener; import android.view.WindowInsets.Side; import android.view.WindowInsets.Side.InsetsSide; import android.view.WindowInsets.Type; @@ -2193,8 +2194,9 @@ public interface WindowManager extends ViewManager { * value for {@link #softInputMode} will be ignored; the window will * not resize, but will stay fullscreen. * - * @deprecated Use {@link Window#setOnContentApplyWindowInsetsListener} instead with a - * listener that fits {@link Type#ime()} instead. + * @deprecated Call {@link Window#setDecorFitsSystemWindows(boolean)} with {@code false} and + * install an {@link OnApplyWindowInsetsListener} on your root content view that fits insets + * of type {@link Type#ime()}. */ @Deprecated public static final int SOFT_INPUT_ADJUST_RESIZE = 0x10; |
