Skip to content

Commit

Permalink
Merge pull request #285 from ministero-salute/feature/improved-ui-design
Browse files Browse the repository at this point in the history
feat: focus alert on selected scan mode
  • Loading branch information
astagi authored Mar 18, 2022
2 parents ccfe7e7 + 1393207 commit 3a9fae3
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ class ScanModeDialogFragment(private val ruleSet: RuleSet) : DialogFragment(), S
scanModeAdapter = ScanModeAdapter(scanModes, chosenScanMode, this)
scanModeBodyLayout.adapter = scanModeAdapter

if (chosenScanMode != -1) {
scanModeBodyLayout.post {
scanModeBodyLayout.smoothScrollToPosition(chosenScanMode)
}
}

val btnClose = view.findViewById<AppCompatImageView>(R.id.closeImageView)
btnClose.setOnClickListener {
dismiss()
Expand Down

0 comments on commit 3a9fae3

Please sign in to comment.