Merge "Fix NPE in InteractionJankMonitor." into sc-dev

This commit is contained in:
Yuncheol Heo
2021-02-02 20:43:06 +00:00
committed by Android (Google) Code Review

View File

@@ -395,7 +395,9 @@ public class KeyguardSecurityContainer extends FrameLayout {
}
private void beginJankInstrument(int cuj) {
InteractionJankMonitor.getInstance().begin(mSecurityViewFlipper.getSecurityView(), cuj);
KeyguardInputView securityView = mSecurityViewFlipper.getSecurityView();
if (securityView == null) return;
InteractionJankMonitor.getInstance().begin(securityView, cuj);
}
private void endJankInstrument(int cuj) {