commit | 8b0807c789b6c29ee71123c020b680636e9d7d85 | [log] [tgz] |
---|---|---|
author | Badhri Jagan Sridharan <Badhri@google.com> | Mon Feb 13 13:14:40 2017 -0800 |
committer | Badhri Jagan Sridharan <Badhri@google.com> | Mon Feb 13 17:44:05 2017 -0800 |
tree | 14e4cb32ee68700af0ee3a102855b422b44582b3 | |
parent | 5de3e5ab36e5cd21deaab68be2a662a15aaf0053 [diff] |
Fix handling usb dialog for wall chargers. [DO NOT MERGE] 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. Bug: 34972898 Test: Charging notification should not show for pixel-c chargers. Change-Id: I8dddcd7727b6af973bd173d2c6e325aa4be2ca3a