diff options
author | Roman Birg <roman@cyngn.com> | 2016-05-10 15:09:39 -0700 |
---|---|---|
committer | Roman Birg <roman@cyngn.com> | 2016-05-11 14:47:01 -0700 |
commit | caea16fc007e1b7a0fa44e490f3a64908e558c44 (patch) | |
tree | 487c9851d00ad93dc05f0a4468c28424fcad53fc | |
parent | d77a60f91cce9e14af396e350b4b6f93ffc48596 (diff) | |
download | frameworks_base-caea16fc007e1b7a0fa44e490f3a64908e558c44.zip frameworks_base-caea16fc007e1b7a0fa44e490f3a64908e558c44.tar.gz frameworks_base-caea16fc007e1b7a0fa44e490f3a64908e558c44.tar.bz2 |
SystemUI: fix potential NPE with Queue
Ticket: CYNGNOS-2782
Change-Id: I96816f5234e3bd7c3608ebfe67133eefd5fdcccc
Signed-off-by: Roman Birg <roman@cyngn.com>
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/QueueView.java | 2 |
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 f88baed..1da2e5e 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/QueueView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/QueueView.java @@ -62,7 +62,7 @@ public class QueueView extends LinearLayout implements public void onPlaybackStateChanged(@NonNull PlaybackState state) { super.onPlaybackStateChanged(state); - if (updateQueue(mController.getQueue())) { + if (getParent() != null && updateQueue(mController.getQueue())) { getParent().requestLayout(); } } |