Missed one more page indicator null check.
Hopefully this is the last one. Change-Id: I1af4f7058834fe0ba60ccc8752a6bf0df64be473
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user