Clear the volume cache for all inactive state transitions
bug:16988480 Change-Id: I0426c76681f8ec832c3f72842ee494d286050fea
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user