Dismiss AccountSwitcherDialog when adding new account

This commit is contained in:
Stefan Niedermann 2020-06-05 12:57:47 +02:00
parent bfef0f1afc
commit 19805f31a5

View file

@ -83,7 +83,10 @@ public class AccountSwitcherDialog extends DialogFragment {
}
adapter.setLocalAccounts(localAccounts);
binding.addAccount.setOnClickListener((v) -> accountSwitcherListener.addAccount());
binding.addAccount.setOnClickListener((v) -> {
accountSwitcherListener.addAccount();
dismiss();
});
return new AlertDialog.Builder(requireContext())
.setView(binding.getRoot())