fix profile note "Saved" message appearing on other account changes (#2079)
This commit is contained in:
parent
2fea6011fd
commit
ff7d900b67
1 changed files with 3 additions and 2 deletions
|
@ -568,11 +568,12 @@ class AccountActivity : BottomSheetActivity(), ActionButtonActivity, HasAndroidI
|
||||||
subscribing = relation.subscribing
|
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.visible(relation.note != null)
|
||||||
accountNoteTextInputLayout.editText?.setText(relation.note)
|
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)
|
accountNoteTextInputLayout.editText?.addTextChangedListener(noteWatcher)
|
||||||
|
|
||||||
updateButtons()
|
updateButtons()
|
||||||
|
|
Loading…
Reference in a new issue