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

Commit 143dc769 authored by RoboErik's avatar RoboErik Committed by Android (Google) Code Review
Browse files

Merge "Clear the volume cache for all inactive state transitions" into lmp-dev

parents d9cb5a73 23b11359
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -94,8 +94,8 @@ public class MediaSessionStack {
            mSessions.add(0, record);
            clearCache();
            return true;
        } else if (newState == PlaybackState.STATE_PAUSED) {
            // Just clear the volume cache in this case
        } else if (!MediaSession.isActiveState(newState)) {
            // Just clear the volume cache when a state goes inactive
            mCachedVolumeDefault = null;
        }
        return false;