Repository navigation
fix(SampleApp): keep content and snackbars clear of the Android navigation bar - #4050
Merged
Merged
Conversation
…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.
👋 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.
Or comment |
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)
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.
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.bottomedge to theirSafeAreaView, so their lists and the SDK's snackbars stop above the navigation bar. The Compose screens do the same through theirScaffold's content insets. Screens with a composer or the tab bar already kept clear of it.ChannelDetailsrenders its snackbar host directly into its parent, and absolute positioning ignores the safe area's padding, so it gets a plain view inside theSafeAreaView.Testing
🤖 Generated with Claude Code