diff options
author | Iván Ávalos <avalos@disroot.org> | 2022-01-13 20:32:25 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2022-01-13 20:32:25 -0600 |
commit | 665738fe28fd5cbfdf7836ece782967809f67398 (patch) | |
tree | 4088825090ebf26935234cc7d2ffbcf3de438e66 /androidApp/src | |
parent | 2417f926d9fb58bf99d5f4f7e6221390709e4899 (diff) | |
download | etbsa-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')
-rw-r--r-- | androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/DetailsActivity.kt | 5 |
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 = |