diff options
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/qs/PageIndicator.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/qs/PageIndicator.java b/packages/SystemUI/src/com/android/systemui/qs/PageIndicator.java index ba07bf4414c1..5cb46ac22889 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/PageIndicator.java +++ b/packages/SystemUI/src/com/android/systemui/qs/PageIndicator.java @@ -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()); |