mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-03-19 10:00:16 +01:00
ArrayList to List refactoring
This commit is contained in:
parent
f79b1fac83
commit
4d2a756fe8
@ -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
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user