Respect file display names during Android drag-and-drop
* java/org/gnu/emacs/EmacsService.java (buildContentName): Remove redundant projection argument to resolver.query. * java/org/gnu/emacs/EmacsWindow.java (onDragEvent): If a content resolver is available, attempt to convert content URIs into file names in advance. * lisp/term/android-win.el (android-handle-dnd-event): Adjust correspondingly.
This commit is contained in:
@@ -1072,7 +1072,6 @@ public final class EmacsService extends Service
|
||||
{
|
||||
StringBuilder builder;
|
||||
String displayName;
|
||||
String[] projection;
|
||||
Cursor cursor;
|
||||
int column;
|
||||
|
||||
@@ -1081,8 +1080,7 @@ public final class EmacsService extends Service
|
||||
|
||||
try
|
||||
{
|
||||
projection = new String[] { OpenableColumns.DISPLAY_NAME, };
|
||||
cursor = resolver.query (uri, projection, null, null, null);
|
||||
cursor = resolver.query (uri, null, null, null, null);
|
||||
|
||||
if (cursor != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user