mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-03-22 19:40:07 +01:00
setup checklist fragment colors earlier to avoid some visual glitches
This commit is contained in:
parent
5d851d18f0
commit
34e2db91e7
@ -34,6 +34,7 @@ class ChecklistFragment : NoteFragment(), ChecklistItemsListener {
|
|||||||
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
|
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
|
||||||
view = inflater.inflate(R.layout.fragment_checklist, container, false) as ViewGroup
|
view = inflater.inflate(R.layout.fragment_checklist, container, false) as ViewGroup
|
||||||
noteId = requireArguments().getLong(NOTE_ID, 0L)
|
noteId = requireArguments().getLong(NOTE_ID, 0L)
|
||||||
|
setupFragmentColors()
|
||||||
return view
|
return view
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -95,6 +96,12 @@ class ChecklistFragment : NoteFragment(), ChecklistItemsListener {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setupFragmentColors()
|
||||||
|
checkLockState()
|
||||||
|
setupAdapter()
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun setupFragmentColors() {
|
||||||
val adjustedPrimaryColor = requireActivity().getProperPrimaryColor()
|
val adjustedPrimaryColor = requireActivity().getProperPrimaryColor()
|
||||||
view.checklist_fab.apply {
|
view.checklist_fab.apply {
|
||||||
setColors(
|
setColors(
|
||||||
@ -117,9 +124,6 @@ class ChecklistFragment : NoteFragment(), ChecklistItemsListener {
|
|||||||
showNewItemDialog()
|
showNewItemDialog()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
checkLockState()
|
|
||||||
setupAdapter()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun checkLockState() {
|
override fun checkLockState() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user