From 19a7b2836ee7b9dc54aee97b0ce0bfa1b6d76def Mon Sep 17 00:00:00 2001 From: Jason Monk Date: Mon, 1 Feb 2016 11:08:18 -0500 Subject: 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 --- .../SystemUI/src/com/android/systemui/qs/customize/TileAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- cgit v1.2.3-59-g8ed1b