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
1 changed files with 2 additions and 1 deletions

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