Small improvement

pull/146/head
M66B 6 years ago
parent 884615a269
commit 49bfdb93ba

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

Loading…
Cancel
Save