Merge "Ignore the charging ripple flag." into sc-v2-dev
This commit is contained in:
@@ -93,9 +93,8 @@ class WiredChargingRippleController @Inject constructor(
|
|||||||
nowPluggedIn: Boolean,
|
nowPluggedIn: Boolean,
|
||||||
charging: Boolean
|
charging: Boolean
|
||||||
) {
|
) {
|
||||||
// Suppresses the ripple when it's disabled, or when the state change comes
|
// Suppresses the ripple when the state change comes from wireless charging.
|
||||||
// from wireless charging.
|
if (batteryController.isPluggedInWireless) {
|
||||||
if (!rippleEnabled || batteryController.isPluggedInWireless) {
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
val wasPluggedIn = pluggedIn
|
val wasPluggedIn = pluggedIn
|
||||||
@@ -145,7 +144,7 @@ class WiredChargingRippleController @Inject constructor(
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun startRipple() {
|
fun startRipple() {
|
||||||
if (!rippleEnabled || rippleView.rippleInProgress || rippleView.parent != null) {
|
if (rippleView.rippleInProgress || rippleView.parent != null) {
|
||||||
// Skip if ripple is still playing, or not playing but already added the parent
|
// Skip if ripple is still playing, or not playing but already added the parent
|
||||||
// (which might happen just before the animation starts or right after
|
// (which might happen just before the animation starts or right after
|
||||||
// the animation ends.)
|
// the animation ends.)
|
||||||
|
|||||||
Reference in New Issue
Block a user