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

Commit 4677e1d9 authored by Tyler Gunn's avatar Tyler Gunn
Browse files

Add early-bail in instant lettering cleanse method.

- This was a nit from a previous commit.  Adding an early-bail in the
method which cleanses instant lettering messages.

Bug: 22779583
Change-Id: I76010fca96323284cc06e5cbe596218e30d59dcf
parent 746b6b52
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -1837,6 +1837,10 @@ public final class ImsPhoneCallTracker extends CallTracker {
     * @return The call subject with invalid characters removed and escaping applied as required.
     * @return The call subject with invalid characters removed and escaping applied as required.
     */
     */
    private String cleanseInstantLetteringMessage(String callSubject) {
    private String cleanseInstantLetteringMessage(String callSubject) {
        if (TextUtils.isEmpty(callSubject)) {
            return callSubject;
        }

        // Get the carrier config for the current sub.
        // Get the carrier config for the current sub.
        CarrierConfigManager configMgr = (CarrierConfigManager)
        CarrierConfigManager configMgr = (CarrierConfigManager)
                mPhone.getContext().getSystemService(Context.CARRIER_CONFIG_SERVICE);
                mPhone.getContext().getSystemService(Context.CARRIER_CONFIG_SERVICE);