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

Commit 67298a5d authored by Shan Huang's avatar Shan Huang
Browse files

Avoid playing the charging ripple on reboot.

Test: Manual, atest WiredChargingRippleControllerTest
Bug: 188242065
Change-Id: Ie5cba5203a7b0c19f9610db0e16012e8bef83585
parent fb127be7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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,