Fixing BatteryStatus ANR
Since getting properties from the BatteryManager can occasionally be very slow, we get these properties in the background, and return the result to the UI thread. This prevents the UI thread from hanging on the slow operations. Bug: 1163401 Change-Id: I918b36bdabfdf0a1b41063316b64bb41539ce6da Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2617468 Commit-Queue: Sam Maier <smaier@chromium.org> Reviewed-by:Tim Volodine <timvolodine@chromium.org> Cr-Commit-Position: refs/heads/master@{#842178}
Showing
Please register or sign in to comment