Missed one more page indicator null check.
Hopefully this is the last one.
Change-Id: I1af4f7058834fe0ba60ccc8752a6bf0df64be473
diff --git a/src/com/android/launcher3/Workspace.java b/src/com/android/launcher3/Workspace.java
index 29ebeb9..0df657d 100644
--- a/src/com/android/launcher3/Workspace.java
+++ b/src/com/android/launcher3/Workspace.java
@@ -1275,13 +1275,15 @@
// 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