Merge "Fixes NPE crash when VRI#setView fail before input stage was create." into tm-qpr-dev

This commit is contained in:
Wei Sheng Shih
2023-01-09 03:24:39 +00:00
committed by Android (Google) Code Review

View File

@@ -1274,7 +1274,7 @@ public final class ViewRootImpl implements ViewParent,
mTmpFrames.attachedFrame = attachedFrame;
mTmpFrames.compatScale = compatScale[0];
mInvCompatScale = 1f / compatScale[0];
} catch (RemoteException e) {
} catch (RemoteException | RuntimeException e) {
mAdded = false;
mView = null;
mAttachInfo.mRootView = null;