From c47dfe757e4fe589876a31cc24e079056a8a7918 Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Thu, 13 Jan 2022 20:32:25 -0600 Subject: Fix detailsPager.isUserInputEnabled on init --- .../java/mx/trackermap/TrackerMap/android/details/DetailsActivity.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/DetailsActivity.kt b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/DetailsActivity.kt index 0b0313b..d942de2 100644 --- a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/DetailsActivity.kt +++ b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/DetailsActivity.kt @@ -58,6 +58,11 @@ class DetailsActivity : AppCompatActivity() { else -> 2 }, false ) + binding.detailsPager.isUserInputEnabled = when (initialSection) { + Action.DETAILS -> true + Action.REPORTS -> false + else -> true + } binding.detailsTabs.addOnTabSelectedListener(object: TabLayout.OnTabSelectedListener { override fun onTabSelected(tab: TabLayout.Tab?) { binding.detailsPager.isUserInputEnabled = -- cgit v1.2.3