Merge "Refactor / Cleanup / Simplify a bunch of dnd related rendering / animation" into ub-launcher3-master

This commit is contained in:
Adam Cohen authored and Android (Google) Code Review committed 2020-03-21 01:27:08 +00:00
commit f946e0a5ee
16 files changed
+355 -274

No files matched your search

@@ -23,6 +23,7 @@ import com.android.launcher3.accessibility.DragViewStateAnnouncer;
import com.android.launcher3.config.FeatureFlags;
import com.android.launcher3.dragndrop.DragOptions;
import com.android.launcher3.dragndrop.DragView;
import com.android.launcher3.dragndrop.DraggableView;
import com.android.launcher3.folder.FolderNameProvider;
/**
@@ -69,6 +70,10 @@ public interface DropTarget {
public FolderNameProvider folderNameProvider;
/** The source view (ie. icon, widget etc.) that is being dragged and which the
* DragView represents. May be an actual View class or a virtual stand-in */
public DraggableView originalView = null;
public DragObject(Context context) {
if (FeatureFlags.FOLDER_NAME_SUGGEST.get()) {
folderNameProvider = FolderNameProvider.newInstance(context);