mirror of
https://github.com/FossifyOrg/Notes.git
synced 2026-09-16 16:00:16 -04:00
ArrayList to List refactoring
This commit is contained in:
1 parent
f79b1fac83
commit
4d2a756fe8
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user