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

Commit a9f573b2 authored by bait_dispatcher_monitor_system's avatar bait_dispatcher_monitor_system Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Do not play the default ringtone if it cannot be retrieved."

parents 13c7df50 43f04b2c
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -6095,9 +6095,11 @@ public class PhoneWindowManager implements WindowManagerPolicy {
        }
        Ringtone ringTone = RingtoneManager.getRingtone(mContext,
                Settings.System.DEFAULT_NOTIFICATION_URI);
        if (ringTone != null) {
            ringTone.setStreamType(AudioManager.STREAM_MUSIC);
            ringTone.play();
        }
    }

    private boolean isGlobalAccessibilityGestureEnabled() {
        return Settings.Global.getInt(mContext.getContentResolver(),