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
This commit is contained in:
Fabian Kozynski
2019-04-18 09:05:15 -04:00
parent 451e2d843d
commit 49614c7578

View File

@@ -81,6 +81,7 @@ public class UiModeNightTile extends QSTileImpl<QSTile.BooleanState> implements
state.icon = mIcon;
state.expandedAccessibilityClassName = Switch.class.getName();
state.state = state.value ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE;
state.showRippleEffect = false;
}
@Override