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

Commit bba410d9 authored by Winson Chung's avatar Winson Chung Committed by Automerger Merge Worker
Browse files

Merge "Create WindowContext for adding the drag drop overlay" into sc-dev am: f839a05c

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13690178

Change-Id: Ic0a853f3d724c7e5371c97dc1d3ab6e5bafe28d4
parents 702f6540 f839a05c
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