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

Commit efbebb8c authored by Vladislav Kaznacheev's avatar Vladislav Kaznacheev
Browse files

Handle drop correctly in BaseIWindow

Bug: 28475039
Change-Id: I6a30be0f2c5fe694e85681af387abeabacff9fc9
parent 5a6d6b9e
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -18,12 +18,14 @@ package com.android.internal.view;

import android.content.res.Configuration;
import android.graphics.Rect;
import android.hardware.input.InputManager;
import android.os.Bundle;
import android.os.ParcelFileDescriptor;
import android.os.RemoteException;
import android.view.DragEvent;
import android.view.IWindow;
import android.view.IWindowSession;
import android.view.PointerIcon;

import com.android.internal.os.IResultReceiver;

@@ -83,10 +85,17 @@ public class BaseIWindow extends IWindow.Stub {

    @Override
    public void dispatchDragEvent(DragEvent event) {
        if (event.getAction() == DragEvent.ACTION_DROP) {
            try {
                mSession.reportDropResult(this, false);
            } catch (RemoteException e) {
            }
        }
    }

    @Override
    public void updatePointerIcon(float x, float y) {
        InputManager.getInstance().setPointerIconShape(PointerIcon.STYLE_NOT_SPECIFIED);
    }

    @Override