summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorRoman Birg <roman@cyngn.com>2016-03-26 09:21:29 -0700
committerRoman Birg <roman@cyngn.com>2016-03-26 09:22:01 -0700
commitca42e228e8e1e2c66767ac7d32ee0c41c0e79fa5 (patch)
tree63594fb8c80c5bd9fad0682dd98316daa584e20a /packages
parente73c4b9d650164f567bc0880283703991f34af82 (diff)
downloadframeworks_base-ca42e228e8e1e2c66767ac7d32ee0c41c0e79fa5.zip
frameworks_base-ca42e228e8e1e2c66767ac7d32ee0c41c0e79fa5.tar.gz
frameworks_base-ca42e228e8e1e2c66767ac7d32ee0c41c0e79fa5.tar.bz2
SystemUI: fix play queue crash
Ticket: CYNGNOS-217 Change-Id: I1d1d1faf353e62187ef3025213e610faa5575dce Signed-off-by: Roman Birg <roman@cyngn.com>
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/QueueView.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/QueueView.java b/packages/SystemUI/src/com/android/systemui/statusbar/QueueView.java
index 2d2f5e3..f88baed 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/QueueView.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/QueueView.java
@@ -213,7 +213,7 @@ public class QueueView extends LinearLayout implements
// add everything
if (!foundNowPlaying) {
- for(int i = 0; i < getMaxQueueRowCount(); i++) {
+ for(int i = 0; i < getMaxQueueRowCount() && i < queue.size(); i++) {
mQueue.add(queue.get(i));
}
}