aboutsummaryrefslogtreecommitdiffstats
path: root/src/androidselect.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/androidselect.c')
-rw-r--r--src/androidselect.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/androidselect.c b/src/androidselect.c
index 4585d64b7e8..2d8f14bb90d 100644
--- a/src/androidselect.c
+++ b/src/androidselect.c
@@ -147,7 +147,7 @@ DEFUN ("android-set-clipboard", Fandroid_set_clipboard,
147 clipboard, 147 clipboard,
148 clipboard_class.set_clipboard, 148 clipboard_class.set_clipboard,
149 bytes); 149 bytes);
150 android_exception_check (); 150 android_exception_check_1 (bytes);
151 151
152 ANDROID_DELETE_LOCAL_REF (bytes); 152 ANDROID_DELETE_LOCAL_REF (bytes);
153 return Qnil; 153 return Qnil;
@@ -172,18 +172,13 @@ Alternatively, return nil if the clipboard is empty. */)
172 = (*android_java_env)->CallObjectMethod (android_java_env, 172 = (*android_java_env)->CallObjectMethod (android_java_env,
173 clipboard, 173 clipboard,
174 method); 174 method);
175 175 android_exception_check ();
176 if (!bytes)
177 {
178 android_exception_check ();
179 return Qnil;
180 }
181 176
182 length = (*android_java_env)->GetArrayLength (android_java_env, 177 length = (*android_java_env)->GetArrayLength (android_java_env,
183 bytes); 178 bytes);
184 data = (*android_java_env)->GetByteArrayElements (android_java_env, 179 data = (*android_java_env)->GetByteArrayElements (android_java_env,
185 bytes, NULL); 180 bytes, NULL);
186 android_exception_check (); 181 android_exception_check_1 (bytes);
187 182
188 string = make_unibyte_string ((char *) data, length); 183 string = make_unibyte_string ((char *) data, length);
189 184