From 326cbcfac3f9278a5a23ffb59d2f93ce44fbed34 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 24 Dec 2014 21:28:35 +0100 Subject: [PATCH] Andy ;-) Refs #2095 --- src/biz/bokhorst/xprivacy/ActivityMain.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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