Change tests against INVALID_SUBSCRIPTION_ID to use isValidSubscriptionId.
Bug: 18668873 Change-Id: Ie709a62bbb74e0a767daeb9e3fb3aecd4c45df44
This commit is contained in:
@@ -365,7 +365,7 @@ public class SimStatus extends PreferenceActivity {
|
||||
final Phone phone = PhoneFactory.getPhone(SubscriptionManager.getPhoneId(
|
||||
mSir.getSubscriptionId()));
|
||||
if (UserHandle.myUserId() == UserHandle.USER_OWNER
|
||||
&& mSir.getSubscriptionId() != SubscriptionManager.INVALID_SUBSCRIPTION_ID) {
|
||||
&& SubscriptionManager.isValidSubscriptionId(mSir.getSubscriptionId())) {
|
||||
if (phone == null) {
|
||||
Log.e(TAG, "Unable to locate a phone object for the given Subscription ID.");
|
||||
return;
|
||||
|
Reference in New Issue
Block a user