Skip to content

Open the system picker directly - #526

Merged
andiwand merged 1 commit into
redesignfrom
landing/04-direct-picker
Jul 28, 2026
Merged

Open the system picker directly#526
andiwand merged 1 commit into
redesignfrom
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.

@andiwand
andiwand force-pushed the landing/03-recents-list branch from 41dcdf7 to b3c2675 Compare July 27, 2026 20:40
@andiwand
andiwand force-pushed the landing/04-direct-picker branch from 2a58ee6 to 9ace181 Compare July 27, 2026 20:40
@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
@andiwand
andiwand force-pushed the landing/03-recents-list branch from 2174369 to 4110d98 Compare July 28, 2026 07:43
@andiwand
andiwand force-pushed the landing/04-direct-picker branch from 870bcce to 303e718 Compare July 28, 2026 07:43
@andiwand
andiwand force-pushed the landing/03-recents-list branch from 4110d98 to 3b8560f Compare July 28, 2026 17:37
Base automatically changed from landing/03-recents-list to redesign July 28, 2026 17:45
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/04-direct-picker branch from 303e718 to 4135a0e Compare July 28, 2026 17:46
@andiwand
andiwand marked this pull request as ready for review July 28, 2026 17:46
@andiwand
andiwand merged commit 0fdcf7d into redesign Jul 28, 2026
2 checks passed
@andiwand
andiwand deleted the landing/04-direct-picker branch July 28, 2026 17:48
andiwand added a commit that referenced this pull request Jul 28, 2026
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>
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