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

Commit eeb9fe79 authored by Winson Chung's avatar Winson Chung
Browse files

Create WindowContext for adding the drag drop overlay

Bug: 174034771
Test: Run and ensure no error logs
Change-Id: I1cdc2e39dfce83165b56e82fa5cf266e5e9043bf
parent d549483e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -85,7 +85,8 @@ public class DragAndDropController implements DisplayController.OnDisplaysChange
    @Override
    public void onDisplayAdded(int displayId) {
        ProtoLog.v(ShellProtoLogGroup.WM_SHELL_DRAG_AND_DROP, "Display added: %d", displayId);
        final Context context = mDisplayController.getDisplayContext(displayId);
        final Context context = mDisplayController.getDisplayContext(displayId)
                .createWindowContext(TYPE_APPLICATION_OVERLAY, null);
        final WindowManager wm = context.getSystemService(WindowManager.class);

        // TODO(b/169894807): Figure out the right layer for this, needs to be below the task bar