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

Commit 56de81a8 authored by Arc Wang's avatar Arc Wang Committed by Gerrit Code Review
Browse files

Merge "Improve multi SIM support of SmsNumberUtils"

parents a651c223 f0375d3e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -609,7 +609,7 @@ public class SmsNumberUtils {
            CarrierConfigManager configManager = (CarrierConfigManager)
            CarrierConfigManager configManager = (CarrierConfigManager)
                    phone.getContext().getSystemService(Context.CARRIER_CONFIG_SERVICE);
                    phone.getContext().getSystemService(Context.CARRIER_CONFIG_SERVICE);
            if (configManager != null) {
            if (configManager != null) {
                PersistableBundle bundle = configManager.getConfig();
                PersistableBundle bundle = configManager.getConfigForSubId(phone.getSubId());
                if (bundle != null) {
                if (bundle != null) {
                    return bundle.getBoolean(CarrierConfigManager
                    return bundle.getBoolean(CarrierConfigManager
                            .KEY_SMS_REQUIRES_DESTINATION_NUMBER_CONVERSION_BOOL);
                            .KEY_SMS_REQUIRES_DESTINATION_NUMBER_CONVERSION_BOOL);