Skip to content
Commit 822394b0 authored by Robert Horvath's avatar Robert Horvath
Browse files

Dismiss Inattentive Sleep Warning when inattentive sleep is disabled

Make sure that if attentive_timeout is set < 0,
maybeHideInattentiveSleepWarningLocked is still called to dismiss the
warning.

Bug: 191822171
Test: Show warning:
        adb shell settings put secure attentive_timeout 30000
      Disable inattentive sleep:
        adb shell settings put secure attentive_timeout -1
      Verify warning is dismissed
Test: atest PowerManagerServiceTest#testInattentiveSleep_hideWarningIfInattentiveSleepIsDisabled
Test: atest --rerun-until-failure 20 InattentiveSleepTests#testInattentiveSleep_noWarningShownIfInattentiveSleepDisabled
Change-Id: I9e5f956924bba9f29ae6cac94b087bd73ed0bac0
parent 5d422575
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment