Commit f4732e2
committed
Fix: Make SystemMessageEntry Parcelable to prevent crash
Makes the `SystemMessageEntry` class implement `android.os.Parcelable`
using the `@Parcelize` annotation. This is to resolve an
`IllegalArgumentException: Parcel: unknown type for value SystemMessageEntry`
that occurred when instances of this class were processed in a way
that required them to be Parcelable, such as being saved with
`rememberSaveable` or in a Bundle during Activity state restoration,
particularly in `PhotoReasoningScreen.kt`.
Automated testing of this change could not be completed due to
limitations in the build environment (missing Android SDK).
The change follows standard Android development practices for resolving
this type of serialization error.1 parent cb76cf5 commit f4732e2
3 files changed
Lines changed: 5 additions & 9 deletions
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
| 7 | + | |
5 | 8 | | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
9 | | - | |
| 12 | + | |
File mode changed.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 1 | + | |
0 commit comments