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

Commit e9bf2de0 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Mms: Fix no ringtone for MT SMS during the call"

parents 132a3884 c878cd96
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1405,4 +1405,6 @@

    <!-- Configuration to sending and receiving Mms when mobile data is disable.-->
    <bool name="config_setup_mms_data">false</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
@@ -1794,4 +1794,7 @@
  <java-symbol type="bool" name="config_enableCpuBoostForOverScrollerFling" />
  <java-symbol type="bool" name="use_motion_accel" />
  <java-symbol type="bool" name="config_setup_mms_data" />

  <!-- Configuration to play sms ringtone during MO/MT call -->
  <java-symbol type="bool" name="config_sms_ringtone_incall" />
</resources>
+6 −1
Original line number Diff line number Diff line
@@ -1832,8 +1832,13 @@ public class NotificationManagerService extends INotificationManager.Stub
                                + n.getPackageName());
                    }

                    // Have ring tone when received SMS when the device is CT mode
                    boolean smsRingtone = mContext.getResources().getBoolean(
                            com.android.internal.R.bool.config_sms_ringtone_incall);

                    // If we're not supposed to beep, vibrate, etc. then don't.
                    if (((mDisabledNotifications & StatusBarManager.DISABLE_NOTIFICATION_ALERTS) == 0)
                    if (((mDisabledNotifications & StatusBarManager.DISABLE_NOTIFICATION_ALERTS)
                            == 0 || (smsRingtone && mInCall))
                            && (!(old != null
                                && (notification.flags & Notification.FLAG_ONLY_ALERT_ONCE) != 0 ))
                            && (r.getUserId() == UserHandle.USER_ALL ||