commit | 1b8e847a8711e4cef316962543faeff7fc4b9180 | [log] [tgz] |
---|---|---|
author | Badhri Jagan Sridharan <Badhri@google.com> | Mon Feb 13 13:14:40 2017 -0800 |
committer | Badhri Jagan Sridharan <Badhri@google.com> | Wed Feb 15 10:21:02 2017 -0800 |
tree | 81f9e647fbb978d47ef61f09bd80c29786f694f6 | |
parent | b688dd18aba3b0edcebaf789ec5f7e904228801c [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. Bug: 34972898 Test: Charging notification should not show for pixel-c chargers. Change-Id: I8dddcd7727b6af973bd173d2c6e325aa4be2ca3a