mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 09:56:49 +00:00
Merge "Add CUJ_LAUNCHER_APP_SWIPE_TO_RECENTS" into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
eaa5703f75
@@ -954,6 +954,8 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>,
|
||||
InteractionJankMonitorWrapper.CUJ_QUICK_SWITCH, 2000 /* ms timeout */);
|
||||
InteractionJankMonitorWrapper.begin(mRecentsView,
|
||||
InteractionJankMonitorWrapper.CUJ_APP_CLOSE_TO_HOME);
|
||||
InteractionJankMonitorWrapper.begin(mRecentsView,
|
||||
InteractionJankMonitorWrapper.CUJ_APP_SWIPE_TO_RECENTS);
|
||||
|
||||
rv.post(() -> rv.getViewTreeObserver().removeOnDrawListener(this));
|
||||
}
|
||||
@@ -1058,6 +1060,10 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>,
|
||||
InteractionJankMonitorWrapper.cancel(
|
||||
InteractionJankMonitorWrapper.CUJ_APP_CLOSE_TO_HOME);
|
||||
}
|
||||
if (endTarget != RECENTS) {
|
||||
InteractionJankMonitorWrapper.cancel(
|
||||
InteractionJankMonitorWrapper.CUJ_APP_SWIPE_TO_RECENTS);
|
||||
}
|
||||
|
||||
switch (endTarget) {
|
||||
case HOME:
|
||||
|
||||
@@ -170,6 +170,8 @@ public class RecentsAnimationController {
|
||||
mController.finish(toRecents, sendUserLeaveHint);
|
||||
InteractionJankMonitorWrapper.end(InteractionJankMonitorWrapper.CUJ_QUICK_SWITCH);
|
||||
InteractionJankMonitorWrapper.end(InteractionJankMonitorWrapper.CUJ_APP_CLOSE_TO_HOME);
|
||||
InteractionJankMonitorWrapper.end(
|
||||
InteractionJankMonitorWrapper.CUJ_APP_SWIPE_TO_RECENTS);
|
||||
MAIN_EXECUTOR.execute(mPendingFinishCallbacks::executeAllAndDestroy);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user