Repository navigation
Remove the in-app photo sheet Android never shows - #137
Merged
Merged
Conversation
Android has no photo library access (Play only allows READ_MEDIA_IMAGES for photo apps), so PhotoLibraryClient always reported Unavailable and the + menu's Photos item always opened the system photo picker. The ported iOS photo sheet, its photo flights into the composer, the recent-photo peek on holding + and the sheet's inline camera could never appear. This removes them, their tests, strings and translations, and the composer morph and glass hand-off that only the sheet drove. The session screen keeps a small SessionAttachmentMenuState for the + menu. The pieces the live screen still used move to plusmenu/ActivityPermissions.kt (findActivity, requestPermissionsAndAwait) and plusmenu/VideoDurationBadge.kt (formatVideoDuration, VideoDurationBadge); inertToFocus moves next to its one caller in RequestDockView.kt. Parity rows say the sheet is not ported because Android uses the system photo picker. Verified: vm.sh check (all modules) passes; translations.py all is clean. On the emulator, the + menu opens and closes on Back and an outside tap, Photos opens the system picker and the picked image lands as an attachment with the keyboard back, Files opens the document picker, Camera opens the camera screen, and holding + and sliding highlights rows exactly as a dev build does.
Closed
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Android has no photo library access (Play policy), so
PhotoLibraryClientalways reportedUnavailableand the + menu's Photos always opened the system photo picker. The ported iOS photo sheet, the photo flights into the composer, the recent-photo peek on holding + and the sheet's inline camera could never appear.This removes them along with the composer morph and glass hand-off that only the sheet drove, plus their tests, strings and translations. The session screen keeps a small
SessionAttachmentMenuStatefor the + menu. The few helpers the live screen used move toplusmenu/ActivityPermissions.kt,plusmenu/VideoDurationBadge.ktandRequestDockView.kt. Parity rows are updated.No user-visible change.
Verified:
scripts/check.shon every module. On the emulator: the + menu opens, and closes on Back and on an outside tap. Photos opens the system picker and the picked image lands as an attachment, then the keyboard comes back. Files opens the document picker and Camera opens the camera screen. Hold-and-slide on + matches adevbuild.