Skip to content

Fix account picker showing two filled radio buttons#5820

Open
CodeSculptor wants to merge 1 commit into
yuliskov:masterfrom
CodeSculptor:fix/account-none-radio
Open

Fix account picker showing two filled radio buttons#5820
CodeSculptor wants to merge 1 commit into
yuliskov:masterfrom
CodeSculptor:fix/account-none-radio

Conversation

@CodeSculptor

Copy link
Copy Markdown

Summary

The account picker (AccountSelectionPresenter) and the Accounts settings dialog (AccountSettingsPresenter) both render with two filled radio buttons when an account is signed in: the hard-coded None entry plus the currently-selected account.

The cause is the same in both files: None is added to the radio category with isSelected = true hard-coded, while the account loop below also marks the active account as selected. appendRadioCategory then renders both as filled.

Fix

Mark None as selected only when no account is currently selected:

```java
}, mSignInService.getSelectedAccount() == null
```

Two-line change in two files. No behaviour change when zero accounts are signed in (still None selected); fixes the visual when one or more accounts are signed in.

Repro

  1. Sign in to one or more accounts.
  2. Open Settings → Accounts (or trigger Select-Account-on-Boot).
  3. Before: None and the active account both render as filled.
  4. After: only the active account renders as filled.

🤖 Generated with Claude Code

The "None" entry was hardcoded as selected, so when an account was also
selected (account.isSelected() == true) the radio category rendered with
two filled buttons simultaneously. Mark "None" as selected only when no
account is currently selected.

Same issue in both the AccountSelectionPresenter dialog and the Settings
account picker.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@yuliskov

yuliskov commented May 27, 2026

Copy link
Copy Markdown
Owner

Thanks for the pr. Strange, but I don't observe the bug. Could you post the screenshot of the bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants