Add more null checks for page indicators.
Change-Id: Id86d4827c9079abfb236f956e531f0e29edfc54e
This commit is contained in:
@@ -1337,7 +1337,9 @@ public class Workspace extends PagedView
|
||||
// different effects based on device performance. On at least one relatively high-end
|
||||
// device I've tried, translating the launcher causes things to get quite laggy.
|
||||
setTranslationAndAlpha(mLauncher.getSearchDropTargetBar(), transX, alpha);
|
||||
setTranslationAndAlpha(getPageIndicator().getView(), transX, alpha);
|
||||
if (getPageIndicator() != null) {
|
||||
setTranslationAndAlpha(getPageIndicator().getView(), transX, alpha);
|
||||
}
|
||||
setTranslationAndAlpha(getChildAt(getCurrentPage()), transX, alpha);
|
||||
setTranslationAndAlpha(mLauncher.getHotseat(), transX, alpha);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user