From 2482eb8191c2d397a4fa1e9e0401696007e844e7 Mon Sep 17 00:00:00 2001 From: Roman Birg Date: Wed, 27 Jan 2016 16:32:18 -0800 Subject: SystemUI: smoother tile transitions when moving to 1st row When moving a tile to the first row, make sure not to do any extra work unless we actually changed dual states. Also no need to re-calculate the state. Animate all the things together. Ref: CYNGNOS-1644 Change-Id: Id462838633c22c67607d5bd94d0e0faee8ea3464 Signed-off-by: Roman Birg --- packages/SystemUI/src/com/android/systemui/qs/QSPage.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'packages/SystemUI/src/com/android/systemui/qs/QSPage.java') diff --git a/packages/SystemUI/src/com/android/systemui/qs/QSPage.java b/packages/SystemUI/src/com/android/systemui/qs/QSPage.java index b06ad35..7871a62 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/QSPage.java +++ b/packages/SystemUI/src/com/android/systemui/qs/QSPage.java @@ -122,7 +122,11 @@ public class QSPage extends ViewGroup { } else { right = left + tileWith; } - if (mPanel.isAnimating(record)) continue; + if (mPanel.isAnimating(record)) { + record.tileView.layout(record.tileView.getLeft(), record.tileView.getTop(), + record.tileView.getRight(), record.tileView.getBottom()); + continue; + } if (false) { Log.v(TAG + "-" + mPage, "laying out " + record + ", top: " + top + ", left: " + left); Log.d(TAG, record + " wiping translations: " -- cgit v1.1