Skip to content

refactor: move deck selection helpers out of :AnkiDroid - #22769

Merged
criticalAY merged 1 commit into
ankidroid:mainfrom
criticalAY:refactor/deck-selection-helpers
Oct 26, 2026
Merged

criticalAY merged 1 commit into
ankidroid:mainfrom
criticalAY:refactor/deck-selection-helpers

Conversation

@criticalAY

Copy link
Copy Markdown
Contributor

Note

Assisted-by: Claude Opus 5.5

Purpose / Description

The widget config screens need DeckSelectionDialog. Its small helpers don't depend on the app, so they move down first.

Fixes

Approach

  • OnContextAndLongClickListener, AnalyticsDialogFragment, DeckFilters, BundleUtils, FragmentResult and TypedFilter move to :common:android
  • AccessibleSearchView uses :compat, so it moves to :anki-common

Packages are unchanged, so callers don't change.

How Has This Been Tested?

Tests and no duplicate classes

Checklist

  • You have a descriptive commit message with a short title (first line, max 50 chars).
  • You have commented your code, particularly in hard-to-understand areas
  • You have performed a self-review of your own code
  • UI changes: include screenshots of all affected screens (in particular showing any new or changed strings)
  • UI Changes: You have tested your change using the Google Accessibility Scanner

@david-allison david-allison left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like "below the app", be specific in the commit message

Other than that, looks great, Cheers.

Approving so you can merge after a wording change

@david-allison david-allison added Needs Author Reply Waiting for a reply from the original author Pending Merge Things with approval that are waiting future merge (e.g. targets a future release, CI wait, etc) and removed Needs Review labels Oct 25, 2026
The widget config screens need DeckSelectionDialog before they can move
to :widgets, so its helpers that don't depend on :AnkiDroid move first.

OnContextAndLongClickListener, AnalyticsDialogFragment, DeckFilters,
BundleUtils, FragmentResult and TypedFilter move to :common:android.
AccessibleSearchView needs :compat, so it moves to :anki-common.
Packages are unchanged.

Assisted-by: Claude Opus 5.5
@criticalAY
criticalAY force-pushed the refactor/deck-selection-helpers branch from 6f5df3d to b4557a6 Compare October 26, 2026 10:04
@criticalAY criticalAY changed the title refactor: move deck selection helpers below the app refactor: move deck selection helpers out of :AnkiDroid Oct 26, 2026
@criticalAY criticalAY changed the title refactor: move deck selection helpers out of :AnkiDroid refactor: move deck selection helpers out of :AnkiDroid Oct 26, 2026
@criticalAY criticalAY removed the Needs Author Reply Waiting for a reply from the original author label Oct 26, 2026
@criticalAY
criticalAY enabled auto-merge October 26, 2026 10:05
@criticalAY
criticalAY added this pull request to the merge queue Oct 26, 2026
Merged via the queue into ankidroid:main with commit c22d356 Oct 26, 2026
22 checks passed
@github-actions github-actions Bot removed the Pending Merge Things with approval that are waiting future merge (e.g. targets a future release, CI wait, etc) label Oct 26, 2026
@github-actions github-actions Bot added this to the 2.26 release milestone Oct 26, 2026
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