Fix CUJ_RECENTS_SCROLLING

The atom was output also when swiping from the bottom to open overview. Now, it's only reported on horizontal swipes between tasks.

Fixes: 265790869
Test: checked perfetto traces
Change-Id: Ic70f440a30ea2c61e44f84098d84b0485a85905e
This commit is contained in:
Nicolo' Mazzucato
2023-01-20 12:28:33 +00:00
parent 77a388c79e
commit beecffed7c
@@ -1351,8 +1351,10 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
if (!mActivity.getDeviceProfile().isTablet) {
mActionsView.updateDisabledFlags(OverviewActionsView.DISABLED_SCROLLING, true);
}
InteractionJankMonitorWrapper.begin(/* view= */ this,
InteractionJankMonitorWrapper.CUJ_RECENTS_SCROLLING);
if (mOverviewStateEnabled) { // only when in overview
InteractionJankMonitorWrapper.begin(/* view= */ this,
InteractionJankMonitorWrapper.CUJ_RECENTS_SCROLLING);
}
}
@Override