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

Commit a5b46891 authored by Brad Ebinger's avatar Brad Ebinger
Browse files

Fix IMS SMS calculateLength bug

Fixed accidental swap of gsm/cdma calculate
length functions for SMS over IMS.

Test: Manual
Change-Id: I59fbfa0ddcc79b564144d3ada96adc8926d625b5
parent a8edd920
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -179,8 +179,8 @@ public final class SMSDispatcherUtil {
     */
    public static TextEncodingDetails calculateLengthGsm(CharSequence messageBody,
            boolean use7bitOnly) {
        return com.android.internal.telephony.cdma.SmsMessage.calculateLength(messageBody,
                use7bitOnly, false);
        return com.android.internal.telephony.gsm.SmsMessage.calculateLength(messageBody,
                use7bitOnly);

    }

@@ -193,7 +193,7 @@ public final class SMSDispatcherUtil {
     */
    public static TextEncodingDetails calculateLengthCdma(CharSequence messageBody,
            boolean use7bitOnly) {
        return com.android.internal.telephony.gsm.SmsMessage.calculateLength(messageBody,
                use7bitOnly);
        return com.android.internal.telephony.cdma.SmsMessage.calculateLength(messageBody,
                use7bitOnly, false);
    }
}