Catch IllegalArgumentException when getting provisioning status
getProvisioningStatusForCapability still need the IllegalArgumentException when the subId is -1. Bug: 346600036 Test: manual test. Disable sim and the settings did not crash. Flag: EXEMPT bugfix Change-Id: Ib5c41ab9214cf34a17ef02864dccffb5371cfe3a
This commit is contained in:
@@ -53,10 +53,10 @@ public class ImsQueryProvisioningStat implements ImsQuery {
|
|||||||
*/
|
*/
|
||||||
public boolean query() {
|
public boolean query() {
|
||||||
try {
|
try {
|
||||||
final ProvisioningManager privisionManager =
|
final ProvisioningManager provisioningManager =
|
||||||
ProvisioningManager.createForSubscriptionId(mSubId);
|
ProvisioningManager.createForSubscriptionId(mSubId);
|
||||||
return privisionManager.getProvisioningStatusForCapability(mCapability, mTech);
|
return provisioningManager.getProvisioningStatusForCapability(mCapability, mTech);
|
||||||
} catch (UnsupportedOperationException exception) {
|
} catch (IllegalArgumentException | UnsupportedOperationException exception) {
|
||||||
Log.w(LOG_TAG, "fail to get Provisioning stat. subId=" + mSubId, exception);
|
Log.w(LOG_TAG, "fail to get Provisioning stat. subId=" + mSubId, exception);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user