Skip to content

fix(SampleApp): keep content and snackbars clear of the Android navigation bar - #4050

Merged
isekovanic merged 1 commit into
developfrom
fix/sampleapp-android-nav-bar-insets
Dec 3, 2026
Merged

isekovanic merged 1 commit into
developfrom
fix/sampleapp-android-nav-bar-insets

Conversation

@isekovanic

Copy link
Copy Markdown
Contributor

Ticket: https://linear.app/stream/issue/RN-552

Summary

On Android with 3-button navigation, the SampleApp's navigation bar was see-through and drew over lists and snackbars. This change matches the Compose sample app on Android 15 and newer. SampleApp only; nothing in package/ changes.

Changes

  • MainActivity.kt, styles.xml: stop turning off navigation bar contrast, so Android draws its translucent background behind the 3-button bar again, as it does for the Compose sample. Gesture navigation is unaffected.
  • Channel details, files, media, pinned and the two new-group screens: add the bottom edge to their SafeAreaView, so their lists and the SDK's snackbars stop above the navigation bar. The Compose screens do the same through their Scaffold's content insets. Screens with a composer or the tab bar already kept clear of it.
  • Channel details: ChannelDetails renders its snackbar host directly into its parent, and absolute positioning ignores the safe area's padding, so it gets a plain view inside the SafeAreaView.
  • Per-channel scheduled messages: the list reserves the bottom inset only while no edit is open, since the edit composer keeps itself above the bar.

Testing

  • Android 14 emulator with 3-button navigation, before and after: the channel details snackbar, the Photos and Videos grid and the chat list's navigation buttons.
  • Not checked: iOS, where those screens now stop at the home indicator; Android 15+ hardware; the scheduled list with rows or an open edit.

🤖 Generated with Claude Code

…ation bar

Lets Android draw its translucent background behind the 3-button navigation bar again,
and gives the screens without a composer or tab bar the bottom inset, as the Compose
sample does.
@getstream-metis

Copy link
Copy Markdown

👋 Hi Ivan, want a second pair of eyes on this?

I'm Jeffery, Stream's review agent. I look for bugs, regressions, missing tests and slow paths, and I only post findings I've checked against the code.

  • Review this PR

Or comment /jeffery review. I'll stay quiet unless you ask.

@isekovanic
isekovanic requested a review from oliverlaz December 3, 2026 15:43
@isekovanic
isekovanic merged commit 6f99961 into develop Dec 3, 2026
15 checks passed
@isekovanic
isekovanic deleted the fix/sampleapp-android-nav-bar-insets branch December 3, 2026 15:44
isekovanic added a commit that referenced this pull request Dec 3, 2026
…4052)

Ticket: https://linear.app/stream/issue/RN-552

## Summary

Shows a "Scheduled message saved" snackbar after an edit of a scheduled
message is saved, as in the updated designs
([iOS](https://www.figma.com/design/Us73erK1xFNcB5EH3hyq6Y/Chat-SDK-Design?node-id=27621-66131),
[Android](https://www.figma.com/design/Us73erK1xFNcB5EH3hyq6Y/Chat-SDK-Design?node-id=27624-66905)).
Normal message edits stay without one, per design.

## Changes

- **`MessageInputContext`**: when
`messageComposer.updateScheduledMessage()` resolves with `scheduled`,
adds the notification. The edit composer closes on save and its
notification host with it, so the notification targets the
`channel-details` panel of the scheduled messages list, in both the
channel's list and an app-wide one.
- An edit queued offline shows nothing, like the other queued scheduled
message actions. A failed save keeps the LLC's existing error.
- New translation key `scheduledMessages.saved.text`.
- SampleApp: drops two comments added in #4050.

## Testing

- New tests: a saved edit shows the snackbar in the list once its
composer has closed; an edit queued offline shows none. Each fails when
its behavior is removed.
- `yarn typecheck`, lint, translations, and the related suites pass.
- Android emulator: saving an edit from a channel's scheduled messages
list shows the snackbar, which goes after about 3 seconds. Saving from
the SampleApp's Scheduled tab was not checked on device.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
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