Handle other SystemShortcut view types.

Bug: 127807969
Change-Id: Ifcc24e9261ddc730bcddd5724a230910daafce17
This commit is contained in:
Jon Miranda committed 2019-03-13 10:02:59 -07:00
1 parent 6f064f9d3f
commit 87beed6404
2 files changed
+13 -4

No files matched your search

+4 -2
View File
@@ -571,9 +571,11 @@ public final class Utilities {
final boolean isFolderIcon = v instanceof FolderIcon;
final Rect rect = new Rect();
// Deep shortcut views have their icon drawn in a separate view.
final boolean fromDeepShortcutView = v.getParent() instanceof DeepShortcutView;
if (fromDeepShortcutView) {
// Deep shortcut views have their icon drawn in a separate view.
if (v instanceof DeepShortcutView) {
dragLayer.getDescendantRectRelativeToSelf(((DeepShortcutView) v).getIconView(), rect);
} else if (fromDeepShortcutView) {
DeepShortcutView view = (DeepShortcutView) v.getParent();
dragLayer.getDescendantRectRelativeToSelf(view.getIconView(), rect);
} else if ((isBubbleTextView || isFolderIcon) && v.getTag() instanceof ItemInfo