From e340f8525813648bc26657ded2d0689b9d496825 Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Fri, 28 Apr 2017 16:30:20 -0700 Subject: [PATCH] Tint devices icon too Fixes #6601 // FREEBIE --- .../thoughtcrime/securesms/ApplicationPreferencesActivity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/org/thoughtcrime/securesms/ApplicationPreferencesActivity.java b/src/org/thoughtcrime/securesms/ApplicationPreferencesActivity.java index 011a4ba09e..ada1ad0af0 100644 --- a/src/org/thoughtcrime/securesms/ApplicationPreferencesActivity.java +++ b/src/org/thoughtcrime/securesms/ApplicationPreferencesActivity.java @@ -193,6 +193,7 @@ public class ApplicationPreferencesActivity extends PassphraseRequiredActionBarA Drawable privacy = DrawableCompat.wrap(ContextCompat.getDrawable(context, R.drawable.ic_security_white_24dp)); Drawable appearance = DrawableCompat.wrap(ContextCompat.getDrawable(context, R.drawable.ic_brightness_6_white_24dp)); Drawable chats = DrawableCompat.wrap(ContextCompat.getDrawable(context, R.drawable.ic_forum_white_24dp)); + Drawable devices = DrawableCompat.wrap(ContextCompat.getDrawable(context, R.drawable.ic_laptop_white_24dp)); Drawable advanced = DrawableCompat.wrap(ContextCompat.getDrawable(context, R.drawable.ic_advanced_white_24dp)); int[] tintAttr = new int[]{R.attr.pref_icon_tint}; @@ -205,6 +206,7 @@ public class ApplicationPreferencesActivity extends PassphraseRequiredActionBarA DrawableCompat.setTint(privacy, color); DrawableCompat.setTint(appearance, color); DrawableCompat.setTint(chats, color); + DrawableCompat.setTint(devices, color); DrawableCompat.setTint(advanced, color); this.findPreference(PREFERENCE_CATEGORY_SMS_MMS).setIcon(sms); @@ -212,6 +214,7 @@ public class ApplicationPreferencesActivity extends PassphraseRequiredActionBarA this.findPreference(PREFERENCE_CATEGORY_APP_PROTECTION).setIcon(privacy); this.findPreference(PREFERENCE_CATEGORY_APPEARANCE).setIcon(appearance); this.findPreference(PREFERENCE_CATEGORY_CHATS).setIcon(chats); + this.findPreference(PREFERENCE_CATEGORY_DEVICES).setIcon(devices); this.findPreference(PREFERENCE_CATEGORY_ADVANCED).setIcon(appearance); }