From f213e437e5fe2cc053e498cf506d919bf83db074 Mon Sep 17 00:00:00 2001 From: Matt Pietal Date: Thu, 17 Nov 2022 20:39:51 +0000 Subject: [PATCH] Remove SOFT_INPUT_ADJUST_RESIZE flag It's been deprecated in favor of each window handling its own insets. Which we already do for the IME. Per IME team, this was triggering a path that would auto-show the soft input. So let's not do that. Fixes: 247957195 Test: manual, following steps listed in bug Change-Id: I997dee193ed1150a531c1cc32f79d7beba0d1021 --- .../systemui/shade/NotificationShadeWindowControllerImpl.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/shade/NotificationShadeWindowControllerImpl.java b/packages/SystemUI/src/com/android/systemui/shade/NotificationShadeWindowControllerImpl.java index b719177f702a9..8698c0462e8d8 100644 --- a/packages/SystemUI/src/com/android/systemui/shade/NotificationShadeWindowControllerImpl.java +++ b/packages/SystemUI/src/com/android/systemui/shade/NotificationShadeWindowControllerImpl.java @@ -246,7 +246,6 @@ public class NotificationShadeWindowControllerImpl implements NotificationShadeW mLp.token = new Binder(); mLp.gravity = Gravity.TOP; mLp.setFitInsetsTypes(0 /* types */); - mLp.softInputMode = LayoutParams.SOFT_INPUT_ADJUST_RESIZE; mLp.setTitle("NotificationShade"); mLp.packageName = mContext.getPackageName(); mLp.layoutInDisplayCutoutMode = LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS; @@ -384,8 +383,6 @@ public class NotificationShadeWindowControllerImpl implements NotificationShadeW mLpChanged.flags |= LayoutParams.FLAG_NOT_FOCUSABLE; mLpChanged.flags &= ~LayoutParams.FLAG_ALT_FOCUSABLE_IM; } - - mLpChanged.softInputMode = LayoutParams.SOFT_INPUT_ADJUST_RESIZE; } private void applyForceShowNavigationFlag(State state) {