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