Skip to content

Commit

Permalink
feat: focus alert on selected scan mode
Browse files Browse the repository at this point in the history
  • Loading branch information
nicola-95 committed Mar 16, 2022
1 parent ccfe7e7 commit 1393207
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 1393207

Please sign in to comment.