Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0551bfe0 authored by Diogo Ferreira's avatar Diogo Ferreira Committed by Roman Birg
Browse files

PrivacyGuard: Tint the enabled icon

The enabled icon was white and when enabled, the icon would get
the exact same color as the background, rendering impossible to see.

Change-Id: I4dc2b52cfca46abf2eff28a0b25918d42cf39f09
parent 5dbce4fe
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
    android:src="@drawable/ic_privacy_guard"
    android:tint="@color/theme_accent">
</bitmap>
+1 −1
Original line number Diff line number Diff line
@@ -109,7 +109,7 @@ public class PrivacyGuardAppListAdapter extends BaseAdapter implements SectionIn
        appHolder.icon.setImageDrawable(icon != null ? icon : mDefaultImg);

        int privacyGuardDrawableResId = app.privacyGuardEnabled
                ? R.drawable.ic_privacy_guard :
                ? R.drawable.ic_privacy_guard_on :
                  R.drawable.ic_privacy_guard_off;
        appHolder.privacyGuardIcon.setImageResource(privacyGuardDrawableResId);