Add null check to page indicator to prevent crashes in landscape.

Change-Id: I9676c19bcdd9129a8519e96febc779f019bc8a13
This commit is contained in:
Tony Wickham
2016-05-18 15:16:40 -07:00
parent a40102f5d5
commit 770217c697
+3 -1
View File
@@ -505,7 +505,9 @@ public class Launcher extends Activity
if (mExtractedColors != null && Utilities.isNycOrAbove()) {
mExtractedColors.load(this);
mHotseat.updateColor(mExtractedColors, !mPaused);
mPageIndicator.updateColor(mExtractedColors);
if (mPageIndicator != null) {
mPageIndicator.updateColor(mExtractedColors);
}
}
}