Merge "Preventing FolderEditText from stealing drag events." into ub-launcher3-master
This commit is contained in:
committed by
Android (Google) Code Review
commit
d84bcf1973
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user