Disabling system drag driver in NYC

Change-Id: Ia7374f04c2aeb9cf8eb5bcf330da56bbc3f47ef2
This commit is contained in:
Sunny Goyal
2016-02-26 09:52:21 -08:00
parent 6646016ff5
commit 53d5c9ee5f
2 changed files with 3 additions and 1 deletions
@@ -36,4 +36,5 @@ public final class FeatureFlags {
public static boolean LAUNCHER3_ICON_NORMALIZATION = true;
public static boolean LAUNCHER3_CLIPPED_FOLDER_ICON = false;
public static boolean LAUNCHER3_LEGACY_LOGGING = false;
public static boolean LAUNCHER3_USE_SYSTEM_DRAG_DRIVER = false;
}
@@ -20,6 +20,7 @@ import com.android.launcher3.AnotherWindowDropTarget;
import com.android.launcher3.DropTarget;
import com.android.launcher3.ItemInfo;
import com.android.launcher3.Utilities;
import com.android.launcher3.config.FeatureFlags;
import android.content.ClipData;
import android.content.Intent;
@@ -90,7 +91,7 @@ public abstract class DragDriver {
public static DragDriver create(
DragController dragController, ItemInfo dragInfo, DragView dragView) {
if (Utilities.isNycOrAbove()) {
if (FeatureFlags.LAUNCHER3_USE_SYSTEM_DRAG_DRIVER && Utilities.isNycOrAbove()) {
return new SystemDragDriver(dragController, dragInfo.getIntent(), dragView);
} else {
return new InternalDragDriver(dragController);