1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-13 15:00:42 -08:00

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:
Po Lu 2024-03-20 10:23:42 +08:00
parent 014cd00402
commit e72f17e462
3 changed files with 39 additions and 20 deletions

View file

@ -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)
{