Merge "Send user-activity to power manager on lock icon long press" into udc-dev

This commit is contained in:
TreeHugger Robot
2023-03-30 20:02:15 +00:00
committed by Android (Google) Code Review

View File

@@ -283,11 +283,15 @@ public class NotificationShadeWindowViewController {
}
mLockIconViewController.onTouchEvent(
ev,
() -> mService.wakeUpIfDozing(
mClock.uptimeMillis(),
mView,
"LOCK_ICON_TOUCH",
PowerManager.WAKE_REASON_GESTURE)
/* onGestureDetectedRunnable */
() -> {
mService.userActivity();
mService.wakeUpIfDozing(
mClock.uptimeMillis(),
mView,
"LOCK_ICON_TOUCH",
PowerManager.WAKE_REASON_GESTURE);
}
);
// In case we start outside of the view bounds (below the status bar), we need to