am b75111df: Merge "Add wireless to KeyguardUpdateMonitor isPluggedIn" into jb-mr1-dev

* commit 'b75111df9bf22496bacb7a6f9d9412e4a7b6827f':
  Add wireless to KeyguardUpdateMonitor isPluggedIn
This commit is contained in:
Brian Muramatsu
2012-09-06 18:02:45 -07:00
committed by Android Git Automerger

View File

@@ -261,12 +261,13 @@ public class KeyguardUpdateMonitor {
}
/**
* Determine whether the device is plugged in (USB or power).
* Determine whether the device is plugged in (USB, power, or wireless).
* @return true if the device is plugged in.
*/
boolean isPluggedIn() {
return plugged == BatteryManager.BATTERY_PLUGGED_AC
|| plugged == BatteryManager.BATTERY_PLUGGED_USB;
|| plugged == BatteryManager.BATTERY_PLUGGED_USB
|| plugged == BatteryManager.BATTERY_PLUGGED_WIRELESS;
}
/**