summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jason Monk <jmonk@google.com> 2016-02-01 11:08:18 -0500
committer Jason Monk <jmonk@google.com> 2016-02-01 11:08:18 -0500
commit19a7b2836ee7b9dc54aee97b0ce0bfa1b6d76def (patch)
tree014bc84b719d065d9e930b7e1d425bcf92f0ba83
parentb61437de5f31d61698eec47221ca5fba1f76c61f (diff)
Fix crash in add QS tiles
It seems one of the tiles has an empty icon... Fix the crash for now, will deal with the tile later. Bug: 26897121 Change-Id: I9abd073a891a5222711fe81ed05ade2a87d70121
-rw-r--r--packages/SystemUI/src/com/android/systemui/qs/customize/TileAdapter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/qs/customize/TileAdapter.java b/packages/SystemUI/src/com/android/systemui/qs/customize/TileAdapter.java
index a4d7e9349297..414cdbd21f93 100644
--- a/packages/SystemUI/src/com/android/systemui/qs/customize/TileAdapter.java
+++ b/packages/SystemUI/src/com/android/systemui/qs/customize/TileAdapter.java
@@ -172,7 +172,7 @@ public class TileAdapter extends BaseAdapter {
}
private void addTile(String spec, Icon icon, CharSequence label, Context context) {
- addTile(spec, icon.getDrawable(context), label);
+ addTile(spec, icon != null ? icon.getDrawable(context) : null, label);
}
private View getView(Context context, View convertView, ViewGroup parent,