fix: Prompt user to save/discard changes after editing bio (#678)
Previous code didn't get the viewmodel to check if the content had changed, so `onBackPressedCallback` wasn't enabled, and the user could edit the bio and press "back" without being prompted to save their changes.
This commit is contained in:
parent
5cb04e219c
commit
a12d03b2b7
@ -234,6 +234,10 @@ class EditProfileActivity : BaseActivity() {
|
||||
viewModel.onChange(currentProfileData)
|
||||
}
|
||||
|
||||
binding.noteEditText.doAfterTextChanged {
|
||||
viewModel.onChange(currentProfileData)
|
||||
}
|
||||
|
||||
binding.lockedCheckBox.setOnCheckedChangeListener { _, _ ->
|
||||
viewModel.onChange(currentProfileData)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user