Fix bugs related to swipe up to home animation.

- Added ConstantState support for FolderAdaptiveIcon and
  ShiftedBitmapDrawable.
- Quick fix for NPE in Workspace#mapOverCellLayout while I investigate
  further.

Bug: 128460496
Change-Id: I5ec02e25dcf9f17aeb37928e675a033bdc8819ae
This commit is contained in:
Jon Miranda
2019-03-12 17:19:30 -07:00
parent 46e4d78774
commit 5bc0dd0708
3 changed files with 70 additions and 3 deletions

View File

@@ -3084,6 +3084,10 @@ public class Workspace extends PagedView<WorkspacePageIndicator>
}
private boolean mapOverCellLayout(boolean recurse, CellLayout layout, ItemOperator op) {
// TODO(b/128460496) Potential race condition where layout is not yet loaded
if (layout == null) {
return false;
}
ShortcutAndWidgetContainer container = layout.getShortcutsAndWidgets();
// map over all the shortcuts on the workspace
final int itemCount = container.getChildCount();