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
Loading
Please register or sign in to comment