changeset 2550:a8d90e2896bc

Android: For the moment disable swiping to change notebook pages. Horizontal swipes conflict with other drag motions we use on some pages in dwtest... like the horizontal sliders. So disable it completely for now. It is a nice feature though for notebooks without controls it conflicts with. So might add it back later with a flag.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 14 May 2021 19:12:39 +0000
parents 736282fddac5
children 127779860ac1
files android/DWindows.kt
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/android/DWindows.kt	Fri May 14 12:13:29 2021 +0000
+++ b/android/DWindows.kt	Fri May 14 19:12:39 2021 +0000
@@ -1302,6 +1302,9 @@
                 params.addRule(RelativeLayout.ABOVE, tabs.id)
             }
             notebook!!.addView(pager, params)
+            // TODO: Not sure if we want this all the time...
+            // Might want to make a flag for this
+            pager.isUserInputEnabled = false
             tabs.addOnTabSelectedListener(object : OnTabSelectedListener {
                 override fun onTabSelected(tab: TabLayout.Tab) {
                     val adapter = pager.adapter as DWTabViewPagerAdapter