ArrayList to List refactoring

This commit is contained in:
merkost 2023-07-07 23:18:05 +10:00
parent f79b1fac83
commit 4d2a756fe8
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ class WidgetConfigureActivity : SimpleActivity() {
private var mCurrentNoteId = 0L
private var mIsCustomizingColors = false
private var mShowTitle = false
private var mNotes = ArrayList<Note>()
private var mNotes = listOf<Note>()
public override fun onCreate(savedInstanceState: Bundle?) {
useDynamicTheme = false

View File

@ -31,7 +31,7 @@ class OpenNoteDialog(val activity: Activity, val callback: (checkedId: Long, new
}
}
private fun initDialog(notes: ArrayList<Note>, view: View) {
private fun initDialog(notes: List<Note>, view: View) {
val textColor = activity.getProperTextColor()
notes.forEach {
activity.layoutInflater.inflate(R.layout.open_note_item, null).apply {