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

Commit 7bbeaf89 authored by Jason Monk's avatar Jason Monk Committed by android-build-merger
Browse files

Merge "Guard against crash in RTL." into nyc-dev

am: 4e9348c7

* commit '4e9348c7':
  Guard against crash in RTL.

Change-Id: Iad5e2f885b83b7231f84b3ebc1ab34f435102bf1
parents ad3af7e8 4e9348c7
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -118,6 +118,10 @@ 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;
        }
        // Lay the two views on top of each other.
        second.setTranslationX(first.getX() - second.getX());