Small improvement

This commit is contained in:
M66B 2018-11-14 18:05:28 +01:00
parent 884615a269
commit 49bfdb93ba
1 changed files with 3 additions and 1 deletions

View File

@ -906,7 +906,9 @@ public class FragmentMessages extends FragmentEx {
db.account().liveAccountDraft(account < 0 ? null : account).observe(getViewLifecycleOwner(), new Observer<EntityAccount>() {
@Override
public void onChanged(EntityAccount account) {
if (account != null) {
if (account == null)
fab.hide();
else {
fab.setTag(account.id);
fab.show();
}