Missed one more page indicator null check.

Hopefully this is the last one.

Change-Id: I1af4f7058834fe0ba60ccc8752a6bf0df64be473
This commit is contained in:
Tony Wickham
2016-05-19 12:45:40 -07:00
parent fea0a5f629
commit ddb77003e7
+4 -2
View File
@@ -1275,13 +1275,15 @@ public class Workspace extends PagedView
// Update the page indicator progress.
boolean isTransitioning = mIsSwitchingState
|| (getLayoutTransition() != null && getLayoutTransition().isRunning());
if (mPageIndicator != null && !isTransitioning) {
if (!isTransitioning) {
showPageIndicatorAtCurrentScroll();
}
}
private void showPageIndicatorAtCurrentScroll() {
mPageIndicator.setScroll(getScrollX(), computeMaxScrollX());
if (mPageIndicator != null) {
mPageIndicator.setScroll(getScrollX(), computeMaxScrollX());
}
}
@Override