mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 15:56:49 +00:00
Add LAUNCHER_ALL_APPS_SEARCH_BACK jank instrumentation
Bug: 330405993 Test: prefetto trace TBD Flag: aconfig com.android.launcher3.enable_predictive_back_gesture TEAMFOOD Change-Id: I1fb2876fb29bc360cbb8dc8c1605215f28383c3c
This commit is contained in:
@@ -85,6 +85,7 @@ import com.android.launcher3.model.data.ItemInfo;
|
||||
import com.android.launcher3.pm.UserCache;
|
||||
import com.android.launcher3.recyclerview.AllAppsRecyclerViewPool;
|
||||
import com.android.launcher3.util.ItemInfoMatcher;
|
||||
import com.android.launcher3.util.Preconditions;
|
||||
import com.android.launcher3.util.Themes;
|
||||
import com.android.launcher3.views.ActivityContext;
|
||||
import com.android.launcher3.views.BaseDragLayer;
|
||||
@@ -1366,6 +1367,18 @@ public class ActivityAllAppsContainerView<T extends Context & ActivityContext>
|
||||
invalidateHeader();
|
||||
}
|
||||
|
||||
/**
|
||||
* Set {@link Animator.AnimatorListener} on {@link mAllAppsTransitionController} to observe
|
||||
* animation of backing out of all apps search view to all apps view.
|
||||
*/
|
||||
public void setAllAppsSearchBackAnimatorListener(Animator.AnimatorListener listener) {
|
||||
Preconditions.assertNotNull(mAllAppsTransitionController);
|
||||
if (mAllAppsTransitionController == null) {
|
||||
return;
|
||||
}
|
||||
mAllAppsTransitionController.setAllAppsSearchBackAnimationListener(listener);
|
||||
}
|
||||
|
||||
public void setScrimView(ScrimView scrimView) {
|
||||
mScrimView = scrimView;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user