From eea96db6da62e1100afe3e6b76e118d3c8a664be Mon Sep 17 00:00:00 2001 From: Sunny Shao Date: Thu, 28 Mar 2024 13:06:06 +0800 Subject: [PATCH] Fix the keyboard shows up problem - Fix the keyboard shows overlapped problem in ChooseLockPassword. Fixes: 331179831 Test: atest PlatformScenarioTests:LockscreenWithSixDigitPIN Change-Id: Id57a3d1d693fb12d370fbf7e8e95b6da5dbf7df3 --- src/com/android/settings/Utils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/android/settings/Utils.java b/src/com/android/settings/Utils.java index b44d3c79484..6a20d75c14e 100644 --- a/src/com/android/settings/Utils.java +++ b/src/com/android/settings/Utils.java @@ -1389,7 +1389,8 @@ public final class Utils extends com.android.settingslib.Utils { ViewCompat.setOnApplyWindowInsetsListener(activity.findViewById(android.R.id.content), (v, windowInsets) -> { Insets insets = windowInsets.getInsets( - WindowInsetsCompat.Type.systemBars()); + WindowInsetsCompat.Type.systemBars() + | WindowInsetsCompat.Type.ime()); // Apply the insets paddings to the view. v.setPadding(insets.left, insets.top, insets.right, insets.bottom);