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

Commit e440c37f authored by Selim Cinek's avatar Selim Cinek Committed by android-build-merger
Browse files

Merge "Fixed a crash when changing density with HUN visible" into nyc-dev

am: 3af18caf

* commit '3af18caf':
  Fixed a crash when changing density with HUN visible

Change-Id: I7b2051a50221fd6a1518be8b6c3eb243bfd656d7
parents 7e81493a 3af18caf
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -120,9 +120,8 @@ public class PageIndicator extends ViewGroup {
        }
        ImageView first = (ImageView) getChildAt(firstIndex);
        ImageView second = (ImageView) getChildAt(secondIndex);
        if (second == null) {
            // Weird state where number of pages must not have propagated yet.
            return;
        if (first == null || second == null) {
            // may happen during reInflation or other weird cases
        }
        // Lay the two views on top of each other.
        second.setTranslationX(first.getX() - second.getX());