mirror of
https://github.com/pachli/pachli-android.git
synced 2025-02-10 00:40:39 +01:00
Ensure text field has focus when reporting statuses
This commit is contained in:
parent
c154aaa17d
commit
1040358f3c
@ -71,6 +71,11 @@ class ReportActivity : BottomSheetActivity(), HasAndroidInjector {
|
|||||||
|
|
||||||
private fun initViewPager() {
|
private fun initViewPager() {
|
||||||
binding.wizard.isUserInputEnabled = false
|
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)
|
binding.wizard.adapter = ReportPagerAdapter(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user