[client,android] use 'text/plain' to access clipboard

This commit is contained in:
akallabeth 2023-08-04 11:24:49 +02:00 committed by akallabeth
parent 22fffdd5ea
commit a17b1ecec0
2 changed files with 2 additions and 2 deletions

View File

@ -422,7 +422,7 @@ android_cliprdr_server_format_data_response(CliprdrClientContext* cliprdr,
JNIEnv* env;
jstring jdata;
jboolean attached;
formatId = ClipboardRegisterFormat(afc->clipboard, "UTF8_STRING");
formatId = ClipboardRegisterFormat(afc->clipboard, "text/plain");
data = (void*)ClipboardGetData(afc->clipboard, formatId, &size);
attached = jni_attach_thread(&env);
size = strnlen(data, size);

View File

@ -124,7 +124,7 @@ static BOOL android_process_event(ANDROID_EVENT_QUEUE* queue, freerdp* inst)
case EVENT_TYPE_CLIPBOARD:
{
ANDROID_EVENT_CLIPBOARD* clipboard_event = (ANDROID_EVENT_CLIPBOARD*)event;
UINT32 formatId = ClipboardRegisterFormat(afc->clipboard, "UTF8_STRING");
UINT32 formatId = ClipboardRegisterFormat(afc->clipboard, "text/plain");
UINT32 size = clipboard_event->data_length;
if (size)