Merge "Fixes NPE crash when VRI#setView fail before input stage was create." into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
f2b5978c5c
@@ -1274,7 +1274,7 @@ public final class ViewRootImpl implements ViewParent,
|
|||||||
mTmpFrames.attachedFrame = attachedFrame;
|
mTmpFrames.attachedFrame = attachedFrame;
|
||||||
mTmpFrames.compatScale = compatScale[0];
|
mTmpFrames.compatScale = compatScale[0];
|
||||||
mInvCompatScale = 1f / compatScale[0];
|
mInvCompatScale = 1f / compatScale[0];
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException | RuntimeException e) {
|
||||||
mAdded = false;
|
mAdded = false;
|
||||||
mView = null;
|
mView = null;
|
||||||
mAttachInfo.mRootView = null;
|
mAttachInfo.mRootView = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user