diff --git a/src/biz/bokhorst/xprivacy/ActivityMain.java b/src/biz/bokhorst/xprivacy/ActivityMain.java index 1fd135754..607838952 100644 --- a/src/biz/bokhorst/xprivacy/ActivityMain.java +++ b/src/biz/bokhorst/xprivacy/ActivityMain.java @@ -1988,8 +1988,11 @@ else if (state == ApplicationInfoEx.STATE_SHARED) getThemed(R.attr.color_state_restricted))); // Display icon - holder.imgIcon.setImageBitmap(xAppInfo.getIconBitmap(ActivityMain.this)); - // holder.imgIcon.setImageDrawable(xAppInfo.getIcon(ActivityMain.this)); + Bitmap bm = xAppInfo.getIconBitmap(ActivityMain.this); + if (bm == null) + holder.imgIcon.setImageDrawable(xAppInfo.getIcon(ActivityMain.this)); + else + holder.imgIcon.setImageBitmap(bm); holder.imgIcon.setVisibility(View.VISIBLE); // Display on demand