fix profile note "Saved" message appearing on other account changes (#2079)
This commit is contained in:
parent
2fea6011fd
commit
ff7d900b67
|
@ -568,11 +568,12 @@ class AccountActivity : BottomSheetActivity(), ActionButtonActivity, HasAndroidI
|
|||
subscribing = relation.subscribing
|
||||
}
|
||||
|
||||
// remove the listener so it doesn't fire on non-user changes
|
||||
accountNoteTextInputLayout.editText?.removeTextChangedListener(noteWatcher)
|
||||
|
||||
accountNoteTextInputLayout.visible(relation.note != null)
|
||||
accountNoteTextInputLayout.editText?.setText(relation.note)
|
||||
|
||||
// add the listener late to avoid it firing on the first change
|
||||
accountNoteTextInputLayout.editText?.removeTextChangedListener(noteWatcher)
|
||||
accountNoteTextInputLayout.editText?.addTextChangedListener(noteWatcher)
|
||||
|
||||
updateButtons()
|
||||
|
|
Loading…
Reference in New Issue