commit | 843aba77452704837320b5951be819e2fc3dd24f | [log] [tgz] |
---|---|---|
author | Badhri Jagan Sridharan <Badhri@google.com> | Mon Feb 13 13:14:40 2017 -0800 |
committer | Badhri Jagan Sridharan <badhri@google.com> | Thu Mar 09 23:17:23 2017 +0000 |
tree | 1c8e33c80eda8811c105e4911949154feddf9ec9 | |
parent | a2f8f4970ef852d4b0caf40d7828376e4a4890c2 [diff] |
Fix handling usb dialog for wall chargers. UsbPort.POWER_ROLE_SINK is orthogonal to the type of the charger attached. POWER_ROLE_SINK would be the case for AC charging and USB charging. Therefore query BatteryManager for the charger type. Cherry-pick: https://android-review.googlesource.com/#/c/338265/ Bug: 34972898 Test: Charging notification should not show for pixel-c chargers. Change-Id: I8dddcd7727b6af973bd173d2c6e325aa4be2ca3a