Merge "Fix NPE when removing PIN locked SIM during E911 call"
This commit is contained in:
@@ -64,7 +64,11 @@ public class KeyguardSimPinView extends KeyguardPinBasedInputView {
|
|||||||
// again when the PUK locked SIM is re-entered.
|
// again when the PUK locked SIM is re-entered.
|
||||||
case ABSENT: {
|
case ABSENT: {
|
||||||
KeyguardUpdateMonitor.getInstance(getContext()).reportSimUnlocked(mSubId);
|
KeyguardUpdateMonitor.getInstance(getContext()).reportSimUnlocked(mSubId);
|
||||||
|
// onSimStateChanged callback can fire when the SIM PIN lock is not currently
|
||||||
|
// active and mCallback is null.
|
||||||
|
if (mCallback != null) {
|
||||||
mCallback.dismiss(true, KeyguardUpdateMonitor.getCurrentUser());
|
mCallback.dismiss(true, KeyguardUpdateMonitor.getCurrentUser());
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|||||||
@@ -70,7 +70,11 @@ public class KeyguardSimPukView extends KeyguardPinBasedInputView {
|
|||||||
// move into the READY state and the PUK lock keyguard should be removed.
|
// move into the READY state and the PUK lock keyguard should be removed.
|
||||||
case READY: {
|
case READY: {
|
||||||
KeyguardUpdateMonitor.getInstance(getContext()).reportSimUnlocked(mSubId);
|
KeyguardUpdateMonitor.getInstance(getContext()).reportSimUnlocked(mSubId);
|
||||||
|
// mCallback can be null if onSimStateChanged callback is called when keyguard
|
||||||
|
// isn't active.
|
||||||
|
if (mCallback != null) {
|
||||||
mCallback.dismiss(true, KeyguardUpdateMonitor.getCurrentUser());
|
mCallback.dismiss(true, KeyguardUpdateMonitor.getCurrentUser());
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user