-
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] #3670
fix: crash when saving bottom sheet state [WPB-14433] #3670
Conversation
Ups 🫰🟨This PR is too big. Please try to break it up into smaller PRs. |
…into fix/crash-bottom-sheet-save-state
…into fix/crash-bottom-sheet-save-state # Conflicts: # kalium
@saleniuk looks like you are rolling back kalium to a previous commitish. This means that the PR's target branch (release/candidate) is using a newer version of Kalium, and the changes in this PR will rollback Kalium to an older version.
Is this intentional? |
Built wire-android-staging-compat-pr-3670.apk is available for download |
@saleniuk looks like you are rolling back kalium to a previous commitish. This means that the PR's target branch (release/candidate) is using a newer version of Kalium, and the changes in this PR will rollback Kalium to an older version.
Is this intentional? |
Built wire-android-staging-compat-pr-3670.apk is available for download |
…into fix/crash-bottom-sheet-save-state # Conflicts: # kalium
Quality Gate passedIssues Measures |
Built wire-android-staging-compat-pr-3670.apk is available for download |
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
.