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

Commit 7aa44f53 authored by Vadim Tryshev's avatar Vadim Tryshev
Browse files

Preventing FolderEditText from stealing drag events.

Bug: 22028725
Change-Id: I3efe98f3d58e49322f867b8bab111c0b36d82699
parent ba16c542
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@ package com.android.launcher3;

import android.content.Context;
import android.util.AttributeSet;
import android.view.DragEvent;
import android.view.KeyEvent;
import android.widget.EditText;

@@ -33,4 +34,10 @@ public class FolderEditText extends EditText {
        }
        return super.onKeyPreIme(keyCode, event);
    }

    @Override
    public boolean onDragEvent(DragEvent event) {
        // We don't want this view to interfere with Launcher own drag and drop.
        return false;
    }
}