Skip to content

Migrate gallery and video player to compose - #781

Merged
thestinger merged 11 commits into
GrapheneOS:compose-prototypefrom
m4pl:task/760-gallery-and-video-player-compose
Oct 20, 2026
Merged

thestinger merged 11 commits into
GrapheneOS:compose-prototypefrom
m4pl:task/760-gallery-and-video-player-compose

Conversation

@m4pl

@m4pl m4pl commented Oct 19, 2026

Copy link
Copy Markdown
Screenshot_20261019-215808

Moves the gallery and video player to Compose.
Inline video, viewer gestures and undo for deletes come in the next PR.

@m4pl
m4pl requested review from RankoR and sdsantos October 19, 2026 20:56
@m4pl
m4pl marked this pull request as ready for review October 19, 2026 20:56
@m4pl
m4pl force-pushed the task/760-gallery-and-video-player-compose branch from 4bffec3 to 1b680e1 Compare October 20, 2026 17:08
@thestinger
thestinger merged commit e8af531 into GrapheneOS:compose-prototype Oct 20, 2026
3 checks passed

@sdsantos sdsantos left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

More UI notes:

  1. Clicking the gallery title could go directly to the folder of the content we're viewing (for example, the Camera folder, instead of the root Albums folder)
  2. I was seeing a different thumbnail image in the camera than the first one the gallery showed to me (it may be temporary and could already be fixed in the other PR)
  3. Swipe back from last image could go back to camera (optional, feature in Google Camera)
  4. Zoom out too much could go back to camera (optional, feature in Google Camera)
  5. Video playback stops when rotating screen
  6. Video playback could repeat at the end
  7. Video controls could hide automatically after the video is playing for a while
  8. Ripples are slightly cut in the bottom controls bar:
Image
  1. If there's no thumbnail available in the main screen, maybe the button should be disabled? Can this behaviour looks a bit odd:
no_media.mp4
  1. Videos sometimes are taking too long to load the preview (that's a 2 second video that is loading in the video below). Maybe we're missing some loading animation if it's taking more than 500ms?
video_takes_long.mp4

style = MaterialTheme.typography.bodyMedium,
modifier = Modifier.padding(
start = SHEET_HORIZONTAL_PADDING,
top = MESSAGE_TOP_PADDING,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I feel the ModalBottomSheets here have corners that are a bit too large. This makes the text starting on top a bit too close to a corner. Maybe either reduce the large and extra large corner sizes, and/or increase here the top padding a bit.

current extraLargeCorner=28.dp + topPadding=32.dp
Image Image

text = label,
style = MaterialTheme.typography.labelLarge,
)
Text(

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I feel these values should be selectable text, at least the file path.

@m4pl

m4pl commented Oct 23, 2026

Copy link
Copy Markdown
Author

@sdsantos, I've added most of the changes to #787. I'll work on the video in the next branch. Will think about the thumbnail image behavior later, since these PRs are focused on the gallery.

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.

4 participants