Small improvement

This commit is contained in:
M66B
2018-11-14 18:05:28 +01:00
parent 884615a269
commit 49bfdb93ba

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();
}