Skip to content

Open the system picker directly - #526

Draft
andiwand wants to merge 1 commit into
landing/03-recents-listfrom
landing/04-direct-picker
Draft

Open the system picker directly#526
andiwand wants to merge 1 commit into
landing/03-recents-listfrom
landing/04-direct-picker

Conversation

@andiwand

@andiwand andiwand commented Jul 26, 2026

Copy link
Copy Markdown
Member

🤖 Generated with Claude Code

Fourth of six, stacked. Base: landing/03-recents-list (#525). Small and isolated.

findDocument queried every activity answering ACTION_OPEN_DOCUMENT and raised an "Open document via:" dialog to choose between them — before launching the picker it was going to launch anyway. That tap buys nothing: the system picker already browses Drive, Downloads, a usb stick and every installed file manager, and it is the UI people know.

Its last row used to be the recently opened documents, which is the landing screen itself as of the previous PR, so the dialog has nothing of its own left.

The <queries> entries stay. They were there for queryIntentActivities, but removing package visibility is exactly the kind of change that breaks on one OEM and nowhere else.

MainActivityTests drove the picker through that dialog, so it loses the step. The intent stubbing is untouched — Espresso-Intents intercepts at execStartActivity, below ActivityResultLauncher, so it still matches with the component unset.

Verification

18 instrumented tests green, including testODT, testPDF and testPasswordProtectedODT, which all go through the changed helper.

findDocument queried every activity answering ACTION_OPEN_DOCUMENT and
raised an "Open document via:" dialog to choose between them, before the
picker it was going to launch anyway. That is a tap that buys nothing:
the system picker already browses Drive, Downloads, a usb stick and
every installed file manager, and it is the ui people know.

Its last row used to be the recently opened documents, which is now the
landing screen itself, so the dialog has nothing left that is its own.

The <queries> entries stay. They were there for queryIntentActivities,
but removing package visibility is exactly the kind of change that
breaks on one OEM and nowhere else.

MainActivityTests drove the picker through the dialog, so it loses that
step; the intent stubbing is untouched, because Espresso-Intents
intercepts at execStartActivity, below ActivityResultLauncher.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TiSZ4FeptMUsFjAuCewzQZ
@andiwand
andiwand force-pushed the landing/03-recents-list branch from b3c2675 to 2174369 Compare July 27, 2026 22:01
@andiwand
andiwand force-pushed the landing/04-direct-picker branch from 9ace181 to 870bcce Compare July 27, 2026 22:01
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.

1 participant