Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Commit

Permalink
Make whitelist icon clickable
Browse files Browse the repository at this point in the history
Refs #1654
  • Loading branch information
M66B committed May 30, 2014
1 parent 0eff7bb commit 7e1b614
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/biz/bokhorst/xprivacy/ActivityApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7e1b614

Please sign in to comment.