commit | 37b966d5bdde09fd9dd680529c35cee0faeaca5d | [log] [tgz] |
---|---|---|
author | Fyodor Kupolov <fkupolov@google.com> | Fri Jul 14 11:39:52 2017 -0700 |
committer | Fyodor Kupolov <fkupolov@google.com> | Mon Jul 24 18:44:33 2017 +0000 |
tree | 1273a367badd49e4d6f6db6ecbe4067c1bf85d9d | |
parent | bfa0ed51105dc3b1a65e25201ffba90a3aabf9dc [diff] |
Handle onUnlockUser on fg thread AppWidgetService.onUserUnlocked can block ActivityManager thread for 500+ ms. The code is guarded by mLock, so it's safe to simply offload it to the worker thread without additional synchronization. Test: Setup widgets/rebooted the device and unlocked Test: Create/switch to guest user + setup widgets Bug: 63389529 Change-Id: Ib3bc76f79bdbc707c0ac270d7fc35c8b27af9af0