diff options
author | Riddle Hsu <riddlehsu@google.com> | 2020-12-10 19:15:55 +0800 |
---|---|---|
committer | Riddle Hsu <riddlehsu@google.com> | 2020-12-10 21:24:37 +0800 |
commit | cde89554f997dccb600330f95fc5706271aa662f (patch) | |
tree | a056ddf42db8b0aa069ddd03bbfc1ed640a40691 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 0f3b7c082398356cbfa10c760afc5bde091cddfb (diff) |
Release sleep wake lock if activities are stopped while sleeping
The activity slept callback was removed since commit 4679918. So
now just add the check at when an activity is stopped. Otherwise
it always takes 5s timeout to release the sleep wake lock.
Bug: 173186282
Test: ActivityTaskManagerServiceTests#testUpdateSleep
Change-Id: I7e662fea0c01ada95951009682375cd9fcec0b01
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions