mirror of
				https://github.com/SimpleMobileTools/Simple-Notes.git
				synced 2025-06-05 17:00:23 +02:00 
			
		
		
		
	ArrayList to List refactoring
This commit is contained in:
		| @@ -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