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

Commit aa81b503 authored by Tyler Gunn's avatar Tyler Gunn Committed by Android Git Automerger
Browse files

am 4677e1d9: Add early-bail in instant lettering cleanse method.

* commit '4677e1d9':
  Add early-bail in instant lettering cleanse method.
parents 8d05907a 4677e1d9
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);