]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix crash upon restoring desktop
authorPo Lu <luangruo@yahoo.com>
Thu, 9 Mar 2023 01:36:36 +0000 (09:36 +0800)
committerPo Lu <luangruo@yahoo.com>
Thu, 9 Mar 2023 01:36:36 +0000 (09:36 +0800)
* src/android.c (android_set_input_focus): Don't call method on
window using service class.

src/android.c

index e620a041348ec91d0b282ea615f8ed389c2d1188..e8f076771b997b2a113922b241483626feea6b9f 100644 (file)
@@ -4363,7 +4363,7 @@ android_set_input_focus (android_window handle, unsigned long time)
 
   (*android_java_env)->CallNonvirtualVoidMethod (android_java_env,
                                                 window,
-                                                service_class.class,
+                                                window_class.class,
                                                 make_input_focus,
                                                 (jlong) time);
   android_exception_check ();