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

Commit 431d6b44 authored by Beverly Tai's avatar Beverly Tai
Browse files

Revert "All users will hear charging sounds."

Bug: 77912907
This reverts commit 6cf3e7c4.

Reason for revert: negative dogfood feedback

Change-Id: I83873286424b93fd9994dfad2e385048cfe6e478
parent 6cf3e7c4
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -718,13 +718,14 @@ final class Notifier {
     * Plays the wireless charging sound for both wireless and non-wireless charging
     */
    private void playChargingStartedSound() {
        // TODO (b/77912907): add back charging sound enabled check & default to charging sounds ON
        final boolean enabled = Settings.Global.getInt(mContext.getContentResolver(),
                Settings.Global.CHARGING_SOUNDS_ENABLED, 1) != 0;
        final boolean dndOff = Settings.Global.getInt(mContext.getContentResolver(),
                Settings.Global.ZEN_MODE, Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS)
                == Settings.Global.ZEN_MODE_OFF;
        final String soundPath = Settings.Global.getString(mContext.getContentResolver(),
                Settings.Global.CHARGING_STARTED_SOUND);
        if (dndOff && soundPath != null) {
        if (enabled && dndOff && soundPath != null) {
            final Uri soundUri = Uri.parse("file://" + soundPath);
            if (soundUri != null) {
                final Ringtone sfx = RingtoneManager.getRingtone(mContext, soundUri);