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

Commit d84bcf19 authored by Vadim Tryshev's avatar Vadim Tryshev Committed by Android (Google) Code Review
Browse files

Merge "Preventing FolderEditText from stealing drag events." into ub-launcher3-master

parents 464d13cd 7aa44f53
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;
    }
}