commit | bcd65e85f4720292ba3e30169b9814875fd0a1ab | [log] [tgz] |
---|---|---|
author | Brandon Dayauon <brdayauon@google.com> | Thu Nov 17 14:37:40 2022 -0800 |
committer | Brandon Dayauon <brdayauon@google.com> | Thu Nov 17 14:44:44 2022 -0800 |
tree | bcdb137ce271d4fd6b6748ff3f11dbce0080e44b | |
parent | 1b30bab1e1e7d7d2580763950e33d7224b0a3d28 [diff] |
Fix pause work apps button being higher than normal This issue can be repro'd by typing something in toast box, hightlighting text, share, then back gesturing back to allApps work tab. To fix, we can simply reset the translation when updating the visibility of the button by calling onApplyWindowInsets() in updateVisibility() bug: 259004115 test: Photos Before: https://screenshot.googleplex.com/6JbHbK3rfdXiXM4 after: https://screenshot.googleplex.com/B99SLsFcPYf6jrG Change-Id: I2d44de37666d5342457c6ae14c691eb1804043cd
diff --git a/src/com/android/launcher3/allapps/WorkModeSwitch.java b/src/com/android/launcher3/allapps/WorkModeSwitch.java index 0a938b2..2272cdc 100644 --- a/src/com/android/launcher3/allapps/WorkModeSwitch.java +++ b/src/com/android/launcher3/allapps/WorkModeSwitch.java
@@ -154,6 +154,7 @@ private void updateVisibility() { clearAnimation(); + onApplyWindowInsets(getRootWindowInsets()); if (mWorkEnabled && mOnWorkTab) { setFlag(FLAG_FADE_ONGOING); setVisibility(VISIBLE);