Use translation shift setter when showing AllApps without animation.

The no-animation case used to be handled immediately upon inflating the
view, so we got away with reassigning the field to
TRANSLATION_SHIFT_OPENED directly. Since this happens in post of a
handler, we need to instead use the setter so that a relayout happens.

Test: Manual
Fix: 324268840
Flag: N/A
Change-Id: I089f15a8d64e0d22885ae387679214a540790ad0
This commit is contained in:
Brian Isganitis
2024-04-08 15:15:37 -07:00
parent 962b3d43ea
commit 514f866f5c

View File

@@ -96,7 +96,7 @@ public class TaskbarAllAppsSlideInView extends AbstractSlideInView<TaskbarOverla
mAllAppsCallbacks.onAllAppsTransitionStart(true);
if (!animate) {
mAllAppsCallbacks.onAllAppsTransitionEnd(true);
mTranslationShift = TRANSLATION_SHIFT_OPENED;
setTranslationShift(TRANSLATION_SHIFT_OPENED);
return;
}