Merge "Refactoring ItemInfo" into ub-launcher3-master

This commit is contained in:
Sunny Goyal authored and Android (Google) Code Review committed 2015-07-07 06:06:59 +00:00
commit 3a56edb0ea
22 files changed
+92 -178

No files matched your search

+2 -2
View File
@@ -600,7 +600,7 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList
}
@Override
public void onDragStart(DragSource source, Object info, int dragAction) { }
public void onDragStart(DragSource source, ItemInfo info, int dragAction) { }
@Override
public void onDragEnd() {
@@ -649,7 +649,7 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList
}
public boolean acceptDrop(DragObject d) {
final ItemInfo item = (ItemInfo) d.dragInfo;
final ItemInfo item = d.dragInfo;
final int itemType = item.itemType;
return ((itemType == LauncherSettings.Favorites.ITEM_TYPE_APPLICATION ||
itemType == LauncherSettings.Favorites.ITEM_TYPE_SHORTCUT) &&