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

Commit 2d5b366b authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Invalidate caches when initiliazing the stream states" into main

parents 15bba4fa 59feaab4
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2650,6 +2650,15 @@ public class AudioService extends IAudioService.Stub
        checkAllAliasStreamVolumes();
        checkMuteAffectedStreams();
        updateDefaultVolumes();
        if (cacheGetStreamVolume()) {
            if (DEBUG_VOL) {
                Log.d(TAG, "Clear volume cache after creating the stream states");
            }
            AudioManager.clearVolumeCache(AudioManager.VOLUME_CACHING_API);
            AudioManager.clearVolumeCache(AudioManager.VOLUME_MIN_CACHING_API);
            AudioManager.clearVolumeCache(AudioManager.VOLUME_MAX_CACHING_API);
        }
    }
    /**