Skip to content

Commit

Permalink
fix(battery_plus): Return correct state enum value on Android for not…
Browse files Browse the repository at this point in the history
… charging state (#2451)
  • Loading branch information
vbuberen committed Dec 12, 2023
1 parent 4d8ce2f commit 68ddda3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ class BatteryPlusPlugin : MethodCallHandler, EventChannel.StreamHandler, Flutter
BatteryManager.BATTERY_STATUS_CHARGING -> "charging"
BatteryManager.BATTERY_STATUS_FULL -> "full"
BatteryManager.BATTERY_STATUS_DISCHARGING -> "discharging"
BatteryManager.BATTERY_STATUS_NOT_CHARGING -> "not_charging"
BatteryManager.BATTERY_STATUS_NOT_CHARGING -> "connected_not_charging"
BatteryManager.BATTERY_STATUS_UNKNOWN -> "unknown"
else -> null
}
Expand Down

0 comments on commit 68ddda3

Please sign in to comment.