-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: crash when saving bottom sheet state [WPB-14433] 🍒 #3683
Merged
saleniuk
merged 3 commits into
develop
from
fix/crash-bottom-sheet-save-state-cherry-pick
Nov 29, 2024
Merged
fix: crash when saving bottom sheet state [WPB-14433] 🍒 #3683
saleniuk
merged 3 commits into
develop
from
fix/crash-bottom-sheet-save-state-cherry-pick
Nov 29, 2024
Conversation
This file contains 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
…rash-bottom-sheet-save-state-cherry-pick
echoes-hq
bot
added
the
echoes: unplanned
Any work item that isn’t part of the product or technical roadmap.
label
Nov 28, 2024
Ups 🫰🟨This PR is too big. Please try to break it up into smaller PRs. |
Quality Gate passedIssues Measures |
yamilmedina
approved these changes
Nov 28, 2024
Built wire-android-staging-compat-pr-3683.apk is available for download |
Built wire-android-dev-debug-pr-3683.apk is available for download |
saleniuk
requested review from
a team,
typfel,
m-zagorski,
alexandreferris,
MohamadJaara and
mathias-niboulies
and removed request for
a team
November 28, 2024 16:23
Garzas
approved these changes
Nov 29, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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.
This PR was manually cherry-picked based on the following PR:
Original PR description:
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?
Issues
When saving conversation menu state, models cannot be saved into bundle resulting in a crash.
Causes (Optional)
rememberSaveable
stores data in aBundle
but not every type can be saved there.Solutions
Add kotlin serialization to models that are used in bottom sheets.
Remove image loader from models and create dedicated view model to inject it directly to avatar image composable instead.
Dependencies (Optional)
Needs releases with:
Testing
How to Test
STR:
-open the app
-long click on any conversation to open bottom sheet
-turn off the phone
The app shouldn't crash.
This can be better tested with enabled another screen orientation in the app and rotating the screen as simply turning off may not be enough to crash, but it requires changing
android:screenOrientation
tounspecified
in the manifest.PR Post Submission Checklist for internal contributors (Optional)
PR Post Merge Checklist for internal contributors
References
feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764
.