Repository navigation
refactor(voice): drop the floating call look's unreachable null fallbacks - #42
Merged
Merged
Conversation
…acks FloatingCallSurfaceLook (added in #37) kept geometry and restArea as nullable state with a fallback in every reader, but the surface always sets both before anything reads them. They now come in through the constructor and are non-null, so the nine fallbacks go. The per-terminal map of derivedStateOf for the touch kind becomes a plain function wrapped in one remember(look, terminal) { derivedStateOf { } } at the call site. No behaviour change. Verified: scripts/check.sh :feature:voice :feature:session :app on the VM; on an emulator with the lab demo call, the card opens mid-stream with captions, drags up to full, back steps full -> card -> orb -> app back, the orb drags and throws, tap opens it, drag down returns it, rotation to landscape and back.
Merged
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.
Follow-up to #37. No behaviour change.
FloatingCallSurfaceLookkeptgeometryandrestAreaas nullable state with a fallback in every reader (frame, shape, bloom, content layout and so on). The surface always sets both before anything reads them, so the fallbacks can't run. They now come in through the constructor and are non-null.The per-
terminalmap ofderivedStateOffor the touch kind is now a plain function, wrapped once at the call site inremember(look, terminal) { derivedStateOf { … } }.scripts/check.sh :feature:voice :feature:session :apppasses (VM).