diff options
author | Danesh M <daneshm90@gmail.com> | 2016-03-17 16:12:24 -0700 |
---|---|---|
committer | Danesh M <daneshm90@gmail.com> | 2016-03-17 16:20:04 -0700 |
commit | df301d4a64fe0dfc812b39e3f7e2c2ca4b93c305 (patch) | |
tree | a3be198024f27f2ff0f326aaaa37f812a6328722 /packages/SystemUI | |
parent | 14b45bc6286782cd6c3dcd9a9162ed9abb7d4d95 (diff) | |
download | frameworks_base-df301d4a64fe0dfc812b39e3f7e2c2ca4b93c305.zip frameworks_base-df301d4a64fe0dfc812b39e3f7e2c2ca4b93c305.tar.gz frameworks_base-df301d4a64fe0dfc812b39e3f7e2c2ca4b93c305.tar.bz2 |
VolumeDialogController : Ignore inactive stream volume updates
CYNGNOS-2259
Change-Id: I87eee4b76c2618b5bbe29385b1cd9b431367e239
Diffstat (limited to 'packages/SystemUI')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/volume/VolumeDialogController.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/volume/VolumeDialogController.java b/packages/SystemUI/src/com/android/systemui/volume/VolumeDialogController.java index 7279d1f..9494e27 100644 --- a/packages/SystemUI/src/com/android/systemui/volume/VolumeDialogController.java +++ b/packages/SystemUI/src/com/android/systemui/volume/VolumeDialogController.java @@ -974,6 +974,13 @@ public class VolumeDialogController { @Override public void onRemoteVolumeChanged(Token token, int flags) { + // If an inactive session changed the remoteVolume, bail + // since we don't have any active streams to update + if (!mRemoteStreams.containsKey(token)) { + Log.i(TAG, "onRemoteVolumeChanged called on inactive" + + "stream. Ignoring"); + return; + } final int stream = mRemoteStreams.get(token); final boolean showUI = (flags & AudioManager.FLAG_SHOW_UI) != 0; boolean changed = updateActiveStreamW(stream); |