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

Commit 38aacb31 authored by xinhe's avatar xinhe Committed by Android (Google) Code Review
Browse files

Merge "Fix for CMAS is not turned on" into lmp-dev

parents 5f0f5c18 4a1dfae2
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -296,7 +296,13 @@ public class UiccSmsController extends ISms.Stub {
     * get sms interface manager object based on subscription.
     **/
    private IccSmsInterfaceManager getIccSmsInterfaceManager(long subId) {
        long phoneId = SubscriptionController.getInstance().getPhoneId(subId);
        int phoneId = SubscriptionController.getInstance().getPhoneId(subId) ;
        //Fixme: for multi-subscription case
        if (!SubscriptionManager.isValidPhoneId(phoneId)
                || phoneId == SubscriptionManager.DEFAULT_PHONE_ID) {
            phoneId = 0;
        }

        try {
            return (IccSmsInterfaceManager)
                ((PhoneProxy)mPhone[(int)phoneId]).getIccSmsInterfaceManager();