Fixing tiles losing subtext in split shade
The issue was caused by rotation from shade with fewer number of visible QQS tiles (portrait mode) to more visible QQS tiles (split shade). For tiles that were not visible in QQS, QSAnimator was setting their respective QS tiles alpha to 0. This value was not updated when they become visible in QQS split shade, so this change is making sure that all QS tiles that have corresponding visible QQS tile will have alpha set to 1 at the start of the animation. Bug: 196831963 Test: open portrait shade -> rotate to split shade -> expand QS - all tiles should have subtitles Change-Id: I44b2a532232748ece926d6ac7819ec0b8a809a51
This commit is contained in:
@@ -64,7 +64,10 @@ public class QSAnimator implements Callback, PageListener, Listener, OnLayoutCha
|
||||
// Fade out faster than fade in to finish before QQS hides.
|
||||
private static final long QQS_FADE_OUT_DURATION = 50L;
|
||||
|
||||
|
||||
/**
|
||||
* List of all views that will be reset when clearing animation state
|
||||
* see {@link #clearAnimationState()} }
|
||||
*/
|
||||
private final ArrayList<View> mAllViews = new ArrayList<>();
|
||||
/**
|
||||
* List of {@link View}s representing Quick Settings that are being animated from the quick QS
|
||||
@@ -397,6 +400,7 @@ public class QSAnimator implements Callback, PageListener, Listener, OnLayoutCha
|
||||
tileView.setClipChildren(true);
|
||||
tileView.setClipToPadding(true);
|
||||
firstPageBuilder.addFloat(tileView.getSecondaryLabel(), "alpha", 0, 1);
|
||||
mAllViews.add(tileView.getSecondaryLabel());
|
||||
}
|
||||
|
||||
mAllViews.add(tileView);
|
||||
|
||||
Reference in New Issue
Block a user