diff options
author | 2024-04-18 10:53:00 +0000 | |
---|---|---|
committer | 2024-04-19 04:54:33 +0000 | |
commit | 85e026262f850a60dfd2f79e4447b8e30e4f5682 (patch) | |
tree | bdc121d4c8b0a55b8095c9b7317e7cc0df2f52ed /packages/Shell/src | |
parent | 1698cd119eed278890ed6ca7d716fe81765f08c9 (diff) |
Try fix Bundle#getParcelable error for relayout bundle
The exception seems to only happen when the WeakReference of Parcel in
BaseBundle is recyled before the lazy value is read.
Try fixing it with:
1. Moving the #getParcelable above #getInt since #getInt is not lazy
read.
2. Add a try-catch block if it happens again.
Also drop the #clear. It is not needed because the Bundle is passed to
the AIDL interface as out type so that the old value will be reset
anyway.
Bug: 335444562
Test: pass existing test
Change-Id: I3dd7aff7fc0b00eff0a77deffc0e21b7aec823d5
Diffstat (limited to 'packages/Shell/src')
0 files changed, 0 insertions, 0 deletions