Mercurial > dwindows
comparison android/dw.cpp @ 2775:5f77f52df8ac
Android: Work in progress changes to get the tree working.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 26 May 2022 16:18:33 +0000 |
parents | 94af460bb954 |
children | 858155527b05 |
comparison
equal
deleted
inserted
replaced
2774:94af460bb954 | 2775:5f77f52df8ac |
---|---|
3290 { | 3290 { |
3291 // First get the class that contains the method you need to call | 3291 // First get the class that contains the method you need to call |
3292 jclass clazz = _dw_find_class(env, DW_CLASS_NAME); | 3292 jclass clazz = _dw_find_class(env, DW_CLASS_NAME); |
3293 // Get the method that you want to call | 3293 // Get the method that you want to call |
3294 jmethodID treeNew = env->GetMethodID(clazz, "treeNew", | 3294 jmethodID treeNew = env->GetMethodID(clazz, "treeNew", |
3295 "(I)Landroidx/recyclerview/widget/RecyclerView;"); | 3295 "(I)Lorg/dbsoft/dwindows/DWTree;"); |
3296 // Call the method on the object | 3296 // Call the method on the object |
3297 jobject result = _dw_jni_check_result(env, env->CallObjectMethod(_dw_obj, treeNew, (int)cid), _DW_REFERENCE_WEAK); | 3297 jobject result = _dw_jni_check_result(env, env->CallObjectMethod(_dw_obj, treeNew, (int)cid), _DW_REFERENCE_WEAK); |
3298 return result; | 3298 return result; |
3299 } | 3299 } |
3300 return nullptr; | 3300 return nullptr; |