fixed regression that hid enter jid button in block list view

This commit is contained in:
Daniel Gultsch 2019-01-11 14:49:03 +01:00
parent 1536075088
commit c11dd71510

View file

@ -26,6 +26,7 @@ public class BlocklistActivity extends AbstractSearchableListItemActivity implem
BlockContactDialog.show(BlocklistActivity.this, (Contact) getListItems().get(position)); BlockContactDialog.show(BlocklistActivity.this, (Contact) getListItems().get(position));
return true; return true;
}); });
this.binding.fab.show();
this.binding.fab.setOnClickListener((v)->showEnterJidDialog()); this.binding.fab.setOnClickListener((v)->showEnterJidDialog());
} }
@ -39,7 +40,7 @@ public class BlocklistActivity extends AbstractSearchableListItemActivity implem
} }
filterContacts(); filterContacts();
Fragment fragment = getSupportFragmentManager().findFragmentByTag(FRAGMENT_TAG_DIALOG); Fragment fragment = getSupportFragmentManager().findFragmentByTag(FRAGMENT_TAG_DIALOG);
if (fragment != null && fragment instanceof OnBackendConnected) { if (fragment instanceof OnBackendConnected) {
((OnBackendConnected) fragment).onBackendConnected(); ((OnBackendConnected) fragment).onBackendConnected();
} }
} }