New subhabit inherits color of habit group

pull/2020/head
Dharanish 1 year ago
parent 68b4bebca9
commit 34a7f782e8

@ -101,6 +101,7 @@ class EditHabitActivity : AppCompatActivity() {
if (intent.hasExtra("groupId")) { if (intent.hasExtra("groupId")) {
val groupId = intent.getLongExtra("groupId", -1L) val groupId = intent.getLongExtra("groupId", -1L)
parentGroup = component.habitGroupList.getById(groupId) parentGroup = component.habitGroupList.getById(groupId)
color = parentGroup!!.color
} }
if (intent.hasExtra("habitId")) { if (intent.hasExtra("habitId")) {

Loading…
Cancel
Save