mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-04-04 18:51:14 +02:00
cleanup formatting
This commit is contained in:
parent
2b5c9d452c
commit
1ea4f0bf04
@ -1,7 +1,6 @@
|
|||||||
package com.simplemobiletools.notes.pro.fragments
|
package com.simplemobiletools.notes.pro.fragments
|
||||||
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.util.Log
|
|
||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
@ -19,7 +18,9 @@ import com.simplemobiletools.notes.pro.extensions.updateWidgets
|
|||||||
import com.simplemobiletools.notes.pro.helpers.NOTE_ID
|
import com.simplemobiletools.notes.pro.helpers.NOTE_ID
|
||||||
import com.simplemobiletools.notes.pro.helpers.NotesHelper
|
import com.simplemobiletools.notes.pro.helpers.NotesHelper
|
||||||
import com.simplemobiletools.notes.pro.interfaces.ChecklistItemsListener
|
import com.simplemobiletools.notes.pro.interfaces.ChecklistItemsListener
|
||||||
import com.simplemobiletools.notes.pro.models.*
|
import com.simplemobiletools.notes.pro.models.ChecklistItem
|
||||||
|
import com.simplemobiletools.notes.pro.models.ChecklistSort
|
||||||
|
import com.simplemobiletools.notes.pro.models.Note
|
||||||
import kotlinx.android.synthetic.main.fragment_checklist.view.*
|
import kotlinx.android.synthetic.main.fragment_checklist.view.*
|
||||||
|
|
||||||
class ChecklistFragment : NoteFragment(), ChecklistItemsListener {
|
class ChecklistFragment : NoteFragment(), ChecklistItemsListener {
|
||||||
@ -216,9 +217,7 @@ class ChecklistFragment : NoteFragment(), ChecklistItemsListener {
|
|||||||
setupAdapter()
|
setupAdapter()
|
||||||
}
|
}
|
||||||
|
|
||||||
private val TAG = "ChecklistFragment"
|
|
||||||
fun sortChecklist(sort: ChecklistSort) {
|
fun sortChecklist(sort: ChecklistSort) {
|
||||||
Log.d(TAG, "sortChecklist: $sort")
|
|
||||||
items = items.sortedWith(sort.getSortComparator()).toMutableList() as ArrayList<ChecklistItem>
|
items = items.sortedWith(sort.getSortComparator()).toMutableList() as ArrayList<ChecklistItem>
|
||||||
setupAdapter()
|
setupAdapter()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user