Merge "Refactoring ItemInfo" into ub-launcher3-master
This commit is contained in:
commit
3a56edb0ea
22 files changed
+92
-178
No files matched your search
@@ -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) &&
|
||||
|
||||
Reference in new issue
Block a user