# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1639666132 0 # Node ID 09775418c776892014c1e0105321b383915a8044 # Parent 970cbcdb68f9983d153ca9d68c3b82d1cdcd539c Android: Use "View" as the type for the viewList instead of LinearLayout. LinearLayout prevented the ability to pack a scrollbox.... since the type for scrollbox is ScrollView instead of LinearLayout. This change would also likely be necessary when we get a separate GroupBox class. diff -r 970cbcdb68f9 -r 09775418c776 android/DWindows.kt --- a/android/DWindows.kt Thu Dec 16 01:12:04 2021 +0000 +++ b/android/DWindows.kt Thu Dec 16 14:48:52 2021 +0000 @@ -904,7 +904,7 @@ val DWImageExts = arrayOf("", ".png", ".webp", ".jpg", ".jpeg", ".gif") class DWTabViewPagerAdapter : RecyclerView.Adapter() { - val viewList = mutableListOf() + val viewList = mutableListOf() val pageList = mutableListOf() val titleList = mutableListOf() var currentPageID = 0L @@ -3446,7 +3446,7 @@ } } - fun notebookPagePack(notebook: RelativeLayout, pageID: Long, box: LinearLayout) + fun notebookPagePack(notebook: RelativeLayout, pageID: Long, box: View) { waitOnUiThread { var pager: ViewPager2? = null diff -r 970cbcdb68f9 -r 09775418c776 android/dw.cpp --- a/android/dw.cpp Thu Dec 16 01:12:04 2021 +0000 +++ b/android/dw.cpp Thu Dec 16 14:48:52 2021 +0000 @@ -5394,7 +5394,7 @@ jclass clazz = _dw_find_class(env, DW_CLASS_NAME); // Get the method that you want to call jmethodID notebookPagePack = env->GetMethodID(clazz, "notebookPagePack", - "(Landroid/widget/RelativeLayout;JLandroid/widget/LinearLayout;)V"); + "(Landroid/widget/RelativeLayout;JLandroid/view/View;)V"); // Call the method on the object env->CallVoidMethod(_dw_obj, notebookPagePack, handle, (jlong)pageid, page); _dw_jni_check_exception(env);