Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 53d5c9ee authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Disabling system drag driver in NYC

Change-Id: Ia7374f04c2aeb9cf8eb5bcf330da56bbc3f47ef2
parent 6646016f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
}
+2 −1
Original line number Diff line number Diff line
@@ -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);