Merge "Refine LatencyTracker hook point for notification shade swipe"

This commit is contained in:
Wu Ahan
2020-11-06 14:49:42 +00:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 4 deletions

View File

@@ -207,8 +207,9 @@ public class OverviewProxyService extends CurrentUserTracker implements
try {
// TODO move this logic to message queue
mStatusBarOptionalLazy.ifPresent(statusBarLazy -> {
StatusBar statusBar = statusBarLazy.get();
statusBar.getPanelController().startExpandLatencyTracking();
mHandler.post(()-> {
StatusBar statusBar = statusBarLazy.get();
int action = event.getActionMasked();
if (action == ACTION_DOWN) {
mInputFocusTransferStarted = true;

View File

@@ -224,9 +224,6 @@ public class NotificationShadeWindowViewController {
if (!isCancel && mService.shouldIgnoreTouch()) {
return false;
}
if (isDown && mNotificationPanelViewController.isFullyCollapsed()) {
mNotificationPanelViewController.startExpandLatencyTracking();
}
if (isDown) {
setTouchActive(true);
mTouchCancelled = false;