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

Commit 656f2817 authored by yanglv's avatar yanglv Committed by Gerrit - the friendly Code Review server
Browse files

Mms: Fix no ringtone for MT SMS during the call

If phone status is active, it will block ringtone sound, if phone status
is idle it will play ringtone sound by Ringtone Player.
Let it play the ringtone during the call.

Change-Id: I160792c434051d9a95393d7b5772980890dd4b6e
CRs-Fixed: 771756
parent 1cfad3b6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2060,4 +2060,6 @@
    <!-- Support for disabling to fetch APN from OMH card
         for some cdma carriers -->
    <bool name="config_fetch_apn_from_omh_card">true</bool>
    <!-- Configuration to play sms ringtone during MO/MT call -->
    <bool name="config_sms_ringtone_incall">false</bool>
</resources>
+3 −0
Original line number Diff line number Diff line
@@ -2199,4 +2199,7 @@
  <java-symbol type="integer" name="launchboost_ksmboost_param" />

  <java-symbol type="bool" name="config_fetch_apn_from_omh_card" />
  <!-- Configuration to play sms ringtone during MO/MT call -->
  <java-symbol type="bool" name="config_sms_ringtone_incall" />

</resources>
+3 −1
Original line number Diff line number Diff line
@@ -1856,7 +1856,9 @@ public class NotificationManagerService extends SystemService {
        if (disableEffects != null) {
            ZenLog.traceDisableEffects(record, disableEffects);
        }
        if (disableEffects == null
        boolean smsRingtone = getContext().getResources().getBoolean(
                com.android.internal.R.bool.config_sms_ringtone_incall);
        if ((disableEffects == null || (smsRingtone && mInCall))
                && (!(record.isUpdate
                    && (notification.flags & Notification.FLAG_ONLY_ALERT_ONCE) != 0 ))
                && (record.getUserId() == UserHandle.USER_ALL ||