Skip to content

fix(ui): use selected account for manage folders#11152

Open
himu-gupta wants to merge 1 commit into
thunderbird:mainfrom
himu-gupta:fix-manage-folders-selected-account
Open

fix(ui): use selected account for manage folders#11152
himu-gupta wants to merge 1 commit into
thunderbird:mainfrom
himu-gupta:fix-manage-folders-selected-account

Conversation

@himu-gupta

@himu-gupta himu-gupta commented Jun 17, 2026

Copy link
Copy Markdown

Description

Fixes #11128.

When MessageHomeActivity initializes from a single-account search, it now resolves and stores the account from that search even if another account was already selected in the activity. This keeps Manage Folders aligned with the account chosen from the drawer instead of reusing a stale account.

The account-selection logic is extracted into a small helper and covered with a focused unit test.

Screenshots

Not applicable; this changes account selection logic for navigation and does not alter UI layout.

Checklist

  • The change is covered by a focused unit test.
  • I ran the relevant local verification.
  • This contribution includes changes created by AI.

Verification

  • git diff --check
  • JAVA_HOME="/Applications/Android Studio.app/Contents/jbr/Contents/Home" ./gradlew --no-daemon --console=plain :legacy:ui:legacy:testDebugUnitTest --tests com.fsck.k9.activity.MessageHomeAccountSelectorTest

@github-actions

Copy link
Copy Markdown
Contributor

Missing report label. Set exactly one of: report: include, report: exclude OR report: highlight.

@himu-gupta himu-gupta force-pushed the fix-manage-folders-selected-account branch from a9a387d to 3da644a Compare June 17, 2026 20:12
@himu-gupta himu-gupta marked this pull request as ready for review June 17, 2026 20:12
@himu-gupta himu-gupta requested a review from a team as a code owner June 17, 2026 20:12
@himu-gupta himu-gupta requested a review from wmontwe June 17, 2026 20:12
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.

Manage folders does not switch accounts

2 participants