From 49614c7578fb5ba08d7ad01c88276e6be147821f Mon Sep 17 00:00:00 2001 From: Fabian Kozynski Date: Thu, 18 Apr 2019 09:05:15 -0400 Subject: [PATCH] Remove ripple from Dark mode tile As when enabling Battery saver and entering Dark Mode, the ripple animation is interrupted due to QS recreating. This disables the animation from the Dark mode tile. Fixes: 130745997 Test: visual Change-Id: I5c44c1408efe70f46a3ac301b86e01c77bc0e98d --- .../src/com/android/systemui/qs/tiles/UiModeNightTile.java | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/SystemUI/src/com/android/systemui/qs/tiles/UiModeNightTile.java b/packages/SystemUI/src/com/android/systemui/qs/tiles/UiModeNightTile.java index 8d2f8952cc6e5..f26a94fed8a4f 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/tiles/UiModeNightTile.java +++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/UiModeNightTile.java @@ -81,6 +81,7 @@ public class UiModeNightTile extends QSTileImpl implements state.icon = mIcon; state.expandedAccessibilityClassName = Switch.class.getName(); state.state = state.value ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE; + state.showRippleEffect = false; } @Override