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

Unverified Commit 52775767 authored by Sam Mortimer's avatar Sam Mortimer Committed by Michael Bestas
Browse files

power: Explicitly check for silent ringtone

Change-Id: I6d7d9c8eefc04589a85cdf5ad33f5d342b315538
parent 3f034d3e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1153,6 +1153,11 @@ public class Notifier {
            final String soundPath = Settings.Global.getString(mContext.getContentResolver(),
                    wireless ? Settings.Global.WIRELESS_CHARGING_STARTED_SOUND
                            : Settings.Global.CHARGING_STARTED_SOUND);
            if ("silent".equals(soundPath)) {
                mIsPlayingChargingStartedFeedback.set(false);
                return;
            }

            final Uri soundUri = Uri.parse("file://" + soundPath);
            if (soundUri != null) {
                final Ringtone sfx = RingtoneManager.getRingtone(mContext, soundUri);