Skip to content

Commit

Permalink
PowerManagerService: Fix updating of mUserActivitySummary
Browse files Browse the repository at this point in the history
I7f1fc35a1573717d1ea101a07c4171d6f66d1553 missed the fact that the primary
purpose of the affected condition block was to update mUserActivitySummary
and the button/keyboard light handling was just appended to it later.

This fixes the waking from dream/screensaver by user activity.

I30c5c8c9c09e3d57ace18cac72b783510b9b3bf3 is removed here as well as it was
just a band aid.

jira: NIGHTLIES-1285

Change-Id: I6b2f6c58e73110787d62e86d4d2ef538638cf491
  • Loading branch information
nadlabak authored and xlxfoxxlx committed Jun 29, 2017
1 parent d78ae02 commit f51d68f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -1838,7 +1838,7 @@ private void updateUserActivitySummaryLocked(long now, int dirty) {
final boolean userInactiveOverride = mUserInactiveOverrideFromWindowManager;

mUserActivitySummary = 0;
if (mWakefulness == WAKEFULNESS_AWAKE && mLastUserActivityTime >= mLastWakeTime) {
if (mLastUserActivityTime >= mLastWakeTime) {
nextTimeout = mLastUserActivityTime
+ screenOffTimeout - screenDimDuration;
if (now < nextTimeout) {
Expand Down

0 comments on commit f51d68f

Please sign in to comment.