diff options
| author | 2016-05-20 19:42:39 +0000 | |
|---|---|---|
| committer | 2016-05-20 19:42:40 +0000 | |
| commit | d1df86dbb8a86c607d7fc1e0a89c7a10fe9899fa (patch) | |
| tree | fdb465824244da6ca3e89739723ab8b4a1feea5f | |
| parent | 6686711ba289740a20dc15133aed4a2b5bac5d44 (diff) | |
| parent | 61d118d650563b2c88613c99842bbc61ffb0ea28 (diff) | |
Merge "QS: Fix RTL animation" into nyc-dev
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/qs/QSAnimator.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/qs/QSAnimator.java b/packages/SystemUI/src/com/android/systemui/qs/QSAnimator.java index af81c196e4f3..f92c51f034cf 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/QSAnimator.java +++ b/packages/SystemUI/src/com/android/systemui/qs/QSAnimator.java @@ -252,8 +252,12 @@ public class QSAnimator implements Callback, PageListener, Listener, OnLayoutCha private void getRelativePositionInt(int[] loc1, View view, View parent) { if(view == parent || view == null) return; - loc1[0] += view.getX(); - loc1[1] += view.getTop(); + // Ignore tile pages as they can have some offset we don't want to take into account in + // RTL. + if (!(view instanceof PagedTileLayout.TilePage)) { + loc1[0] += view.getLeft(); + loc1[1] += view.getTop(); + } getRelativePositionInt(loc1, (View) view.getParent(), parent); } |