commit | cde89554f997dccb600330f95fc5706271aa662f | [log] [tgz] |
---|---|---|
author | Riddle Hsu <riddlehsu@google.com> | Thu Dec 10 19:15:55 2020 +0800 |
committer | Riddle Hsu <riddlehsu@google.com> | Thu Dec 10 21:24:37 2020 +0800 |
tree | a056ddf42db8b0aa069ddd03bbfc1ed640a40691 | |
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