am b75111df: Merge "Add wireless to KeyguardUpdateMonitor isPluggedIn" into jb-mr1-dev
* commit 'b75111df9bf22496bacb7a6f9d9412e4a7b6827f': Add wireless to KeyguardUpdateMonitor isPluggedIn
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user