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

Commit 38742a2b authored by RoboErik's avatar RoboErik Committed by Android Git Automerger
Browse files

am 307df51a: am 3f872752: am e73770ce: am 0cbc26db: am 2a638f08: Merge "Clear...

am 307df51a: am 3f872752: am e73770ce: am 0cbc26db: am 2a638f08: Merge "Clear the volume cache for all inactive state transitions" into lmp-dev

* commit '307df51add1eca9a2d5f36e9110889cf471a31dc':
  Clear the volume cache for all inactive state transitions
parents 86f0a242 68d6478e
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;