Missed one more page indicator null check.
am: ddb77003e7
* commit 'ddb77003e728cac32de009e709f80280e68f6b6e':
Missed one more page indicator null check.
Change-Id: I8b24824ddcf8894daf5be52dc743da20e9627792
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