Skip to content

Commit

Permalink
refactor(BugTrackerActivity): Replace values() by entries for kotlin 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianDevel committed Jan 3, 2024
1 parent d2cc76b commit bc9ae4e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ class BugTrackerActivity : AppCompatActivity() {

typeField.apply {
setOnItemClickListener { _, _, position, _ ->
type = ReportType.values()[position]
type = ReportType.entries[position]
}

setText(adapter.getItem(ReportType.values().indexOf(DEFAULT_REPORT_TYPE)) as String, false)
setText(adapter.getItem(ReportType.entries.indexOf(DEFAULT_REPORT_TYPE)) as String, false)
}

priorityField.apply {
Expand Down

0 comments on commit bc9ae4e

Please sign in to comment.