diff --git a/src/biz/bokhorst/xprivacy/ActivityApp.java b/src/biz/bokhorst/xprivacy/ActivityApp.java index f3341e1e1..ec70cdbcd 100644 --- a/src/biz/bokhorst/xprivacy/ActivityApp.java +++ b/src/biz/bokhorst/xprivacy/ActivityApp.java @@ -1375,8 +1375,19 @@ protected void onPostExecute(Object result) { holder.imgCbMethodRestricted.setImageBitmap(getCheckBoxImage(rstate)); holder.imgCbMethodRestricted.setVisibility(View.VISIBLE); + // Show whitelist icon holder.imgCbMethodWhitelist.setVisibility(whitelist ? View.VISIBLE : View.GONE); + if (whitelist) + holder.imgCbMethodWhitelist.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + ActivityApp.this.optionWhitelists(); + } + }); + else + holder.imgCbMethodWhitelist.setClickable(false); + // Show asked state if (ondemand) { holder.imgCbMethodAsk.setImageBitmap(getAskBoxImage(rstate)); holder.imgCbMethodAsk.setVisibility(View.VISIBLE);