Adding a few null checks.

1) During migration, if launcher2 has deleted user data,
migration oes not happen
  2) If Launcher3 does not has bind widget permission,
QSB would be null.

Bug: 18388507
Change-Id: Ief81f6f77ce154e7b3ecd4b77caf24239401e738
This commit is contained in:
Sunny Goyal committed 2014-11-14 12:36:13 -08:00
1 parent 06910a8844
commit 416541cc0e
3 files changed
+13 -5

No files matched your search

+4 -2
View File
@@ -2449,8 +2449,10 @@ public class Workspace extends SmoothPagedView
pageIndicator.setAlpha(finalHotseatAndPageIndicatorAlpha);
AlphaUpdateListener.updateVisibility(pageIndicator);
}
searchBar.setAlpha(finalSearchBarAlpha);
AlphaUpdateListener.updateVisibility(searchBar);
if (searchBar != null) {
searchBar.setAlpha(finalSearchBarAlpha);
AlphaUpdateListener.updateVisibility(searchBar);
}
updateCustomContentVisibility();
setScaleX(mNewScale);
setScaleY(mNewScale);