summaryrefslogtreecommitdiffstats
path: root/packages/Keyguard/src/com/android/keyguard/KeyguardSimPinView.java
diff options
context:
space:
mode:
authorWink Saville <wink@google.com>2014-12-11 13:37:50 -0800
committerWink Saville <wink@google.com>2014-12-11 13:37:50 -0800
commita54bf6583380cf328b9858d942b4c387c6163f0f (patch)
tree9306aa8c96d54bcd490ed444d4928549146f4e59 /packages/Keyguard/src/com/android/keyguard/KeyguardSimPinView.java
parentf6ed526b3a02bac9c5912a9655e5890f332cefc6 (diff)
downloadframeworks_base-a54bf6583380cf328b9858d942b4c387c6163f0f.zip
frameworks_base-a54bf6583380cf328b9858d942b4c387c6163f0f.tar.gz
frameworks_base-a54bf6583380cf328b9858d942b4c387c6163f0f.tar.bz2
Change tests against INVALID_SUBSCRIPTION_ID to use isValidSubscriptionId.
Rename isValidSubId to isValidSubscriptionId. Bug: 18668873 Change-Id: Ie709a62bbb74e0a767daeb9e3fb3aecd4c45df44
Diffstat (limited to 'packages/Keyguard/src/com/android/keyguard/KeyguardSimPinView.java')
-rw-r--r--packages/Keyguard/src/com/android/keyguard/KeyguardSimPinView.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/Keyguard/src/com/android/keyguard/KeyguardSimPinView.java b/packages/Keyguard/src/com/android/keyguard/KeyguardSimPinView.java
index f1c4cd4..f4acff8 100644
--- a/packages/Keyguard/src/com/android/keyguard/KeyguardSimPinView.java
+++ b/packages/Keyguard/src/com/android/keyguard/KeyguardSimPinView.java
@@ -75,7 +75,7 @@ public class KeyguardSimPinView extends KeyguardPinBasedInputView {
if (DEBUG) Log.v(TAG, "Resetting state");
KeyguardUpdateMonitor monitor = KeyguardUpdateMonitor.getInstance(mContext);
mSubId = monitor.getNextSubIdForState(IccCardConstants.State.PIN_REQUIRED);
- if (mSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID) {
+ if (SubscriptionManager.isValidSubscriptionId(mSubId)) {
int count = TelephonyManager.getDefault().getSimCount();
Resources rez = getResources();
final String msg;