Merge "QS: Fix RTL animation" into nyc-dev
am: d1df86dbb8
* commit 'd1df86dbb8a86c607d7fc1e0a89c7a10fe9899fa':
QS: Fix RTL animation
Change-Id: Id61eb8c61845ab5a7edbcd20444cc0df4a5074c8
This commit is contained in:
@@ -252,8 +252,12 @@ public class QSAnimator implements Callback, PageListener, Listener, OnLayoutCha
|
|||||||
|
|
||||||
private void getRelativePositionInt(int[] loc1, View view, View parent) {
|
private void getRelativePositionInt(int[] loc1, View view, View parent) {
|
||||||
if(view == parent || view == null) return;
|
if(view == parent || view == null) return;
|
||||||
loc1[0] += view.getX();
|
// Ignore tile pages as they can have some offset we don't want to take into account in
|
||||||
loc1[1] += view.getTop();
|
// RTL.
|
||||||
|
if (!(view instanceof PagedTileLayout.TilePage)) {
|
||||||
|
loc1[0] += view.getLeft();
|
||||||
|
loc1[1] += view.getTop();
|
||||||
|
}
|
||||||
getRelativePositionInt(loc1, (View) view.getParent(), parent);
|
getRelativePositionInt(loc1, (View) view.getParent(), parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user