diff android/dw.cpp @ 2796:0c534743b7a9

Android: Allow passing a menu window handle to dw_window_destroy(). Internally if it is a menu, instead of following the Window/View code path, instead pass the handle to menuDestroy().
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 15 Jul 2022 23:58:19 +0000
parents 5c61aba17b69
children b004cc75d574
line wrap: on
line diff
--- a/android/dw.cpp	Fri Jul 15 11:50:09 2022 +0000
+++ b/android/dw.cpp	Fri Jul 15 23:58:19 2022 +0000
@@ -5963,7 +5963,7 @@
         jclass clazz = _dw_find_class(env, DW_CLASS_NAME);
         // Get the method that you want to call
         jmethodID windowDestroy = env->GetMethodID(clazz, "windowDestroy",
-                                                   "(Landroid/view/View;)I");
+                                                   "(Ljava/lang/Object;)I");
         // Call the method on the object
         retval = env->CallIntMethod(_dw_obj, windowDestroy, handle);
         _dw_jni_check_exception(env);