summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/qs/QSPage.java
diff options
context:
space:
mode:
authorRoman Birg <roman@cyngn.com>2016-01-27 16:32:18 -0800
committerRoman Birg <roman@cyngn.com>2016-02-01 14:12:31 -0800
commit2482eb8191c2d397a4fa1e9e0401696007e844e7 (patch)
tree03e20688bef8dd28234504f6adac8557ff637bf6 /packages/SystemUI/src/com/android/systemui/qs/QSPage.java
parent8b7fa883def9b0b7bc8ad8fb404b963e88976e0e (diff)
downloadframeworks_base-2482eb8191c2d397a4fa1e9e0401696007e844e7.zip
frameworks_base-2482eb8191c2d397a4fa1e9e0401696007e844e7.tar.gz
frameworks_base-2482eb8191c2d397a4fa1e9e0401696007e844e7.tar.bz2
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 <roman@cyngn.com>
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/qs/QSPage.java')
-rw-r--r--packages/SystemUI/src/com/android/systemui/qs/QSPage.java6
1 files changed, 5 insertions, 1 deletions
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: "