aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-01-13 20:32:25 -0600
committerIván Ávalos <avalos@disroot.org>2022-01-13 20:32:25 -0600
commitc47dfe757e4fe589876a31cc24e079056a8a7918 (patch)
tree4088825090ebf26935234cc7d2ffbcf3de438e66
parentfeef38c8d9befd5dbd53bea22725f7922138df2d (diff)
downloadetbsa-trackermap-mobile-c47dfe757e4fe589876a31cc24e079056a8a7918.tar.gz
etbsa-trackermap-mobile-c47dfe757e4fe589876a31cc24e079056a8a7918.tar.bz2
etbsa-trackermap-mobile-c47dfe757e4fe589876a31cc24e079056a8a7918.zip
Fix detailsPager.isUserInputEnabled on init
-rw-r--r--androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/DetailsActivity.kt5
1 files changed, 5 insertions, 0 deletions
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 =