mirror of https://github.com/FreeRDP/FreeRDP
[client,android] use 'text/plain' to access clipboard
This commit is contained in:
parent
22fffdd5ea
commit
a17b1ecec0
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue