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

Commit 81c0503e authored by Louis Chang's avatar Louis Chang
Browse files

Sets mAdded to true only when the #setView is done successfully

ViewRootImpl#mAdded was set to true, but the system crashed and
caused exception thrown and ended the method early. In that case,
the mFirstInputStage was not yet initialized, and caused another NPE
while performing the clean-up.

Bug: 385705687
Test: wm presubmit
Flag: com.android.window.flags.fix_view_root_call_trace
Change-Id: I799f563d637468b00efdc7fb0fce9ce1c28d1ee6
parent d2687781
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment