Fix color picker fragment

This commit is contained in:
J-Jamet
2022-01-12 17:01:35 +01:00
parent d4818c5567
commit 05fad24eda
2 changed files with 31 additions and 13 deletions

View File

@@ -247,7 +247,8 @@ class EntryEditActivity : DatabaseLockActivity(),
}
mEntryEditViewModel.requestColorSelection.observe(this) { color ->
ColorPickerDialogFragment().show(supportFragmentManager, "ColorPickerFragment")
ColorPickerDialogFragment.newInstance(color)
.show(supportFragmentManager, "ColorPickerFragment")
}
mColorPickerViewModel.colorPicked.observe(this) { color ->