mirror of
https://github.com/nextcloud/notes-android.git
synced 2024-11-26 06:47:03 +03:00
Dismiss AccountSwitcherDialog when adding new account
This commit is contained in:
parent
bfef0f1afc
commit
19805f31a5
1 changed files with 4 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue