Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3d6a266a authored by Matt Garnes's avatar Matt Garnes Committed by Rajesh Yengisetty
Browse files

Fix CustomContent display issue.

During certain transition animations, the X offset value is computed,
taking into account the translation value set by the transition effect.
Preserved the right behavior by using child.getLeft() to compute the value,
without including the X translation.

Change-Id: I25acf6e4bae1db9a2c12525125a4994e16c40dfe
(cherry picked from commit 5d2f7ac2)
parent 30f86c21
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1687,7 +1687,7 @@ public abstract class PagedView extends ViewGroup implements ViewGroup.OnHierarc
            }

            int baselineX = mPageScrolls[index] + scrollOffset + getViewportOffsetX();
            return (int) (child.getX() - baselineX);
            return (int) (child.getLeft() - baselineX);
        }
    }