aboutsummaryrefslogtreecommitdiff
path: root/androidApp/src/main/java/mx/trackermap
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
commit665738fe28fd5cbfdf7836ece782967809f67398 (patch)
tree4088825090ebf26935234cc7d2ffbcf3de438e66 /androidApp/src/main/java/mx/trackermap
parent2417f926d9fb58bf99d5f4f7e6221390709e4899 (diff)
downloadetbsa-trackermap-mobile-665738fe28fd5cbfdf7836ece782967809f67398.tar.gz
etbsa-trackermap-mobile-665738fe28fd5cbfdf7836ece782967809f67398.tar.bz2
etbsa-trackermap-mobile-665738fe28fd5cbfdf7836ece782967809f67398.zip
Fix detailsPager.isUserInputEnabled on init
Diffstat (limited to 'androidApp/src/main/java/mx/trackermap')
-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 =