Merge "Add wireless to KeyguardUpdateMonitor isPluggedIn" into jb-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
b75111df9b
@@ -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.
|
* @return true if the device is plugged in.
|
||||||
*/
|
*/
|
||||||
boolean isPluggedIn() {
|
boolean isPluggedIn() {
|
||||||
return plugged == BatteryManager.BATTERY_PLUGGED_AC
|
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