Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 85e02626 authored by Chris Li's avatar Chris Li
Browse files

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
parent 1698cd11
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment