Avoid playing the charging ripple on reboot.

Test: Manual, atest WiredChargingRippleControllerTest
Bug: 188242065
Change-Id: Ie5cba5203a7b0c19f9610db0e16012e8bef83585
This commit is contained in:
Shan Huang
2021-05-26 09:36:59 +08:00
parent fb127be77f
commit 67298a5d08

View File

@@ -83,6 +83,7 @@ class WiredChargingRippleController @Inject constructor(
var rippleView: ChargingRippleView = ChargingRippleView(context, attrs = null)
init {
pluggedIn = batteryController.isPluggedIn
val batteryStateChangeCallback = object : BatteryController.BatteryStateChangeCallback {
override fun onBatteryLevelChanged(
level: Int,