[Predictive Back] Recover taskbar all apps scale to 1f with animation if user swipe back within search [3/n]

Fix: 327490078
Flag: aconfig com.android.launcher3.enable_predictive_back_gesture TEAMFOOD
Test: manual
Change-Id: Iab1de455bf23d73b34f4a0d60f7e7a143bd028d1
This commit is contained in:
Fengjiang Li
2024-02-29 11:03:42 -08:00
parent 9280a68bbd
commit cc1c582d89

View File

@@ -267,7 +267,11 @@ public class TaskbarAllAppsSlideInView extends AbstractSlideInView<TaskbarOverla
@Override
public void onBackInvoked() {
if (!mAllAppsCallbacks.handleSearchBackInvoked()) {
if (mAllAppsCallbacks.handleSearchBackInvoked()) {
// We need to scale back taskbar all apps if we navigate back within search inside all
// apps
animateSlideInViewToNoScale();
} else {
super.onBackInvoked();
}
}