summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/keyguard/KeyguardSimPukView.java
diff options
context:
space:
mode:
authorJayachandran C <jayachandranc@google.com>2019-11-08 18:22:45 -0800
committerJayachandran C <jayachandranc@google.com>2019-11-08 19:11:33 -0800
commitf5436a64a34c4554bdacc62af28b34985c1c46a8 (patch)
tree8790f9f58bf7bd868fdbfd9078975b2055b962df /packages/SystemUI/src/com/android/keyguard/KeyguardSimPukView.java
parentf737318cd0c1fe14d5abd8a2196de35ba39b746e (diff)
Remove usage of IccCardConstants hidden API
This CL replaces all the reference of IccCardConstants.State with TelephonyManager SIM card state values. Bug: 111498835 Test: Manual atest com.android.systemui.statusbar.policy Change-Id: I810cce9ff418e34a8dbea06e91fa25b2300647e0
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/KeyguardSimPukView.java')
-rw-r--r--packages/SystemUI/src/com/android/keyguard/KeyguardSimPukView.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardSimPukView.java b/packages/SystemUI/src/com/android/keyguard/KeyguardSimPukView.java
index 70237a053e1e..7e08ab385020 100644
--- a/packages/SystemUI/src/com/android/keyguard/KeyguardSimPukView.java
+++ b/packages/SystemUI/src/com/android/keyguard/KeyguardSimPukView.java
@@ -37,8 +37,6 @@ import android.view.WindowManager;
import android.widget.ImageView;
import com.android.internal.telephony.ITelephony;
-import com.android.internal.telephony.IccCardConstants;
-import com.android.internal.telephony.IccCardConstants.State;
import com.android.internal.telephony.PhoneConstants;
import com.android.systemui.Dependency;
import com.android.systemui.R;
@@ -69,12 +67,12 @@ public class KeyguardSimPukView extends KeyguardPinBasedInputView {
KeyguardUpdateMonitorCallback mUpdateMonitorCallback = new KeyguardUpdateMonitorCallback() {
@Override
- public void onSimStateChanged(int subId, int slotId, State simState) {
+ public void onSimStateChanged(int subId, int slotId, int simState) {
if (DEBUG) Log.v(TAG, "onSimStateChanged(subId=" + subId + ",state=" + simState + ")");
switch(simState) {
// If the SIM is unlocked via a key sequence through the emergency dialer, it will
// move into the READY state and the PUK lock keyguard should be removed.
- case READY: {
+ case TelephonyManager.SIM_STATE_READY: {
mRemainingAttempts = -1;
mShowDefaultMessage = true;
// mCallback can be null if onSimStateChanged callback is called when keyguard
@@ -210,7 +208,7 @@ public class KeyguardSimPukView extends KeyguardPinBasedInputView {
private void handleSubInfoChangeIfNeeded() {
KeyguardUpdateMonitor monitor = Dependency.get(KeyguardUpdateMonitor.class);
- int subId = monitor.getNextSubIdForState(IccCardConstants.State.PUK_REQUIRED);
+ int subId = monitor.getNextSubIdForState(TelephonyManager.SIM_STATE_PUK_REQUIRED);
if (subId != mSubId && SubscriptionManager.isValidSubscriptionId(subId)) {
mSubId = subId;
mShowDefaultMessage = true;