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

Commit

Permalink
Do not use alpha channel for on demand dangerous color
Browse files Browse the repository at this point in the history
Refs #1755
  • Loading branch information
M66B committed Jun 28, 2014
1 parent 3b04ba7 commit 5353002
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

<color name="color_dangerous_light">#3CF83A3A</color>
<color name="color_dangerous_dark">#50F83A3A</color>
<color name="color_dangerous_dialog">#801D1D</color>
<color name="color_dangerous_off_light">#0CF83A3A</color>
<color name="color_dangerous_off_dark">#20F83A3A</color>
<color name="color_dangerous_user_light">#3CF8743A</color>
Expand Down
2 changes: 1 addition & 1 deletion src/biz/bokhorst/xprivacy/PrivacyService.java
Original file line number Diff line number Diff line change
Expand Up @@ -1554,7 +1554,7 @@ private View getOnDemandView(final PRestriction restriction, final Hook hook, Ap

// Set values
if ((hook != null && hook.isDangerous()) || appInfo.isSystem())
view.setBackgroundColor(resources.getColor(R.color.color_dangerous_dark));
view.setBackgroundResource(R.color.color_dangerous_dialog);
else
view.setBackgroundResource(android.R.color.background_dark);

Expand Down

0 comments on commit 5353002

Please sign in to comment.