Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b75111df authored by Brian Muramatsu's avatar Brian Muramatsu Committed by Android (Google) Code Review
Browse files

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

parents bf4d55cb a92a01bb
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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;
        }

        /**