From 1fa2840e82be1ca35c723d5863ea7ef256292b5d Mon Sep 17 00:00:00 2001 From: Brandon Dayauon Date: Fri, 1 Nov 2024 13:27:48 -0700 Subject: [PATCH] Make sure work button is collapsed when keyboard is up upon going to app drawer Call shrink so that work button is collapsed when keyboard is up. bug:361589193 Test - manual: video before:https://drive.google.com/file/d/1OChJkEJEWrsuUtEaac2jtc15uGkOeGAm/view?usp=sharing after: https://drive.google.com/file/d/1DXGia25u4JzWRLTiwqlKQu8TYjyL9SEI/view?usp=sharing Flag: com.android.launcher3.work_scheduler_in_work_profile Change-Id: Ifafb76b61f0d2a5e9c6b60519adc300c911b20dc --- src/com/android/launcher3/allapps/WorkUtilityView.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/android/launcher3/allapps/WorkUtilityView.java b/src/com/android/launcher3/allapps/WorkUtilityView.java index ad347d9697..4b58ab06dc 100644 --- a/src/com/android/launcher3/allapps/WorkUtilityView.java +++ b/src/com/android/launcher3/allapps/WorkUtilityView.java @@ -188,8 +188,10 @@ public class WorkUtilityView extends LinearLayout implements Insettable, WindowInsetsCompat.toWindowInsetsCompat(insets, this); if (windowInsetsCompat.isVisible(WindowInsetsCompat.Type.ime())) { setInsets(mImeInsets, windowInsetsCompat.getInsets(WindowInsetsCompat.Type.ime())); + shrink(); } else { mImeInsets.setEmpty(); + extend(); } updateTranslationY(); return super.onApplyWindowInsets(insets);