mirror of https://github.com/BOINC/boinc.git
android: added support for wireless charger. treat like AC. Issue #1312.
This commit is contained in:
parent
cef81cc487
commit
9d27de5010
|
@ -102,6 +102,11 @@ public class DeviceStatus{
|
|||
if(!on_ac_power) change = true; // if different from before, set flag
|
||||
on_ac_power = true;
|
||||
break;
|
||||
case 4: // constant BATTERY_PLUGGED_WIRELESS, only defined in API Level 17
|
||||
// treat like AC power
|
||||
if(!on_ac_power) change = true; // if different from before, set flag
|
||||
on_ac_power = true;
|
||||
break;
|
||||
case BatteryManager.BATTERY_PLUGGED_USB:
|
||||
if(!on_usb_power) change = true; // if different from before, set flag
|
||||
on_usb_power = true;
|
||||
|
|
Loading…
Reference in New Issue