Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 73f07d29 authored by HYUNG HEO's avatar HYUNG HEO Committed by android-build-merger
Browse files

Merge "Improve carrierconfig to support multisim in SIMRecords"

am: 9981d8ad

Change-Id: I75c0ecc317dfb416a03982e56e4dbe0f2b0ec0fc
parents 94409e4d 9981d8ad
Loading
Loading
Loading
Loading
+13 −9
Original line number Diff line number Diff line
@@ -1028,16 +1028,20 @@ public class SIMRecords extends IccRecords {
                                        onCphsCompleted));
                    } else {
                        if (ar.userObj != null) {
                            CarrierConfigManager configLoader = (CarrierConfigManager)
                            CarrierConfigManager configManager = (CarrierConfigManager)
                                    mContext.getSystemService(Context.CARRIER_CONFIG_SERVICE);
                            if (ar.exception != null && configLoader != null
                                    && configLoader.getConfig().getBoolean(
                            if (ar.exception != null && configManager != null) {
                                PersistableBundle b = configManager.getConfigForSubId(
                                        SubscriptionController.getInstance().getSubIdUsingPhoneId(
                                                mParentApp.getPhoneId()));
                                if (b != null && b.getBoolean(
                                        CarrierConfigManager.KEY_EDITABLE_VOICEMAIL_NUMBER_BOOL)) {
                                    // GsmCdmaPhone will store vm number on device
                                    // when IccVmNotSupportedException occurred
                                    AsyncResult.forMessage(((Message) ar.userObj)).exception =
                                            new IccVmNotSupportedException(
                                                    "Update SIM voice mailbox error");
                                }
                            } else {
                                AsyncResult.forMessage(((Message) ar.userObj))
                                    .exception = ar.exception;