Merge "Player activity notification: SoundPool not ready for activity reporting"

This commit is contained in:
Jean-Michel Trivi
2017-02-15 01:32:24 +00:00
committed by Android (Google) Code Review

View File

@@ -103,6 +103,10 @@ public final class PlaybackActivityMonitor
final boolean change;
synchronized(mPlayerLock) {
final AudioPlaybackConfiguration apc = mPlayers.get(new Integer(piid));
// FIXME SoundPool not ready for state reporting
if (apc.getPlayerType() == AudioPlaybackConfiguration.PLAYER_TYPE_JAM_SOUNDPOOL) {
return;
}
if (checkConfigurationCaller(piid, apc, binderUid)) {
//TODO add generation counter to only update to the latest state
change = apc.handleStateEvent(event);