diff options
author | Dianne Hackborn <hackbod@android.com> | 2012-04-18 20:42:50 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-04-18 20:42:50 -0700 |
commit | 79511838f94c38f92215173c18f3e17da61a8f5d (patch) | |
tree | 2f536173688cc6074621f09356a8a49fc81e9584 /core/java/android | |
parent | 7eda9de1a638e4ed1ce5dc65fecd673400b9f3c0 (diff) | |
parent | ec96305ea05355d57fd803edd57d6af1c4a9f83e (diff) | |
download | frameworks_base-79511838f94c38f92215173c18f3e17da61a8f5d.zip frameworks_base-79511838f94c38f92215173c18f3e17da61a8f5d.tar.gz frameworks_base-79511838f94c38f92215173c18f3e17da61a8f5d.tar.bz2 |
am ec96305e: am 559167f3: Merge "Volume Overlay Bug When swapping streams"
* commit 'ec96305ea05355d57fd803edd57d6af1c4a9f83e':
Volume Overlay Bug When swapping streams
Diffstat (limited to 'core/java/android')
-rw-r--r-- | core/java/android/view/VolumePanel.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/java/android/view/VolumePanel.java b/core/java/android/view/VolumePanel.java index 48fe0df..1072953 100644 --- a/core/java/android/view/VolumePanel.java +++ b/core/java/android/view/VolumePanel.java @@ -400,7 +400,10 @@ public class VolumePanel extends Handler implements OnSeekBarChangeListener, Vie if (LOGD) Log.d(TAG, "onVolumeChanged(streamType: " + streamType + ", flags: " + flags + ")"); if ((flags & AudioManager.FLAG_SHOW_UI) != 0) { - if (mActiveStreamType == -1) { + // If the activePanel is none - or - the one we are updating is not the current active panel + // then it is likely that the audio stream being updated has been swapped by an app + // we need to reorder the sliders to bring the new active one to the front + if (mActiveStreamType == -1 || streamType != mActiveStreamType) { reorderSliders(streamType); } onShowVolumeChanged(streamType, flags); |