Skip to content

Commit b75111d

Browse files
Brian MuramatsuAndroid (Google) Code Review
authored andcommitted
Merge "Add wireless to KeyguardUpdateMonitor isPluggedIn" into jb-mr1-dev
2 parents bf4d55c + a92a01b commit b75111d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

policy/src/com/android/internal/policy/impl/keyguard/KeyguardUpdateMonitor.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,12 +261,13 @@ public BatteryStatus(int status, int level, int plugged, int health) {
261261
}
262262

263263
/**
264-
* Determine whether the device is plugged in (USB or power).
264+
* Determine whether the device is plugged in (USB, power, or wireless).
265265
* @return true if the device is plugged in.
266266
*/
267267
boolean isPluggedIn() {
268268
return plugged == BatteryManager.BATTERY_PLUGGED_AC
269-
|| plugged == BatteryManager.BATTERY_PLUGGED_USB;
269+
|| plugged == BatteryManager.BATTERY_PLUGGED_USB
270+
|| plugged == BatteryManager.BATTERY_PLUGGED_WIRELESS;
270271
}
271272

272273
/**

0 commit comments

Comments
 (0)