Merge "Avoid playing the charging ripple on reboot." into sc-dev am: 7b8e968a14
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14715991 Change-Id: I279c8e9c73e2fab822136203c33fe67244b2b6c7
This commit is contained in:
@@ -83,6 +83,7 @@ class WiredChargingRippleController @Inject constructor(
|
|||||||
var rippleView: ChargingRippleView = ChargingRippleView(context, attrs = null)
|
var rippleView: ChargingRippleView = ChargingRippleView(context, attrs = null)
|
||||||
|
|
||||||
init {
|
init {
|
||||||
|
pluggedIn = batteryController.isPluggedIn
|
||||||
val batteryStateChangeCallback = object : BatteryController.BatteryStateChangeCallback {
|
val batteryStateChangeCallback = object : BatteryController.BatteryStateChangeCallback {
|
||||||
override fun onBatteryLevelChanged(
|
override fun onBatteryLevelChanged(
|
||||||
level: Int,
|
level: Int,
|
||||||
|
|||||||
Reference in New Issue
Block a user