Ensure text field has focus when reporting statuses

This commit is contained in:
UlrichKu 2023-05-04 14:53:27 +02:00 committed by GitHub
parent c154aaa17d
commit 1040358f3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,6 +71,11 @@ class ReportActivity : BottomSheetActivity(), HasAndroidInjector {
private fun initViewPager() {
binding.wizard.isUserInputEnabled = false
// Odd workaround for text field losing focus on first focus
// (unfixed old bug: https://github.com/material-components/material-components-android/issues/500)
binding.wizard.offscreenPageLimit = 1
binding.wizard.adapter = ReportPagerAdapter(this)
}