Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,13 @@ private void createAndShowDialog(List<Account> accounts, List<Drawable> icons, b
private void appendAccountSelection(List<Account> accounts, List<Drawable> icons, AppDialogPresenter settingsPresenter) {
List<OptionItem> optionItems = new ArrayList<>();

// "None" is selected only when no account is currently selected — otherwise the
// radio category renders two filled buttons (None + the active account).
optionItems.add(UiOptionItem.from(
getContext().getString(R.string.dialog_account_none), optionItem -> {
selectAccount(null);
settingsPresenter.closeDialog();
}, true
}, mSignInService.getSelectedAccount() == null
));

int index = -1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,13 @@ private void appendSelectAccountSection(List<Account> accounts, List<Drawable> i

List<OptionItem> optionItems = new ArrayList<>();

// "None" is selected only when no account is currently selected — otherwise the
// radio category renders two filled buttons (None + the active account).
optionItems.add(UiOptionItem.from(
getContext().getString(R.string.dialog_account_none), optionItem -> {
AccountSelectionPresenter.instance(getContext()).selectAccount(null);
settingsPresenter.closeDialog();
}, true
}, getSignInService().getSelectedAccount() == null
));

CharSequence accountName = " (" + getContext().getString(R.string.dialog_account_none) + ")";
Expand Down