Tint the icon
This commit is contained in:
parent
68fe0516eb
commit
2fdf71db64
|
@ -186,6 +186,10 @@ class VectorSettingsSecurityPrivacyFragment @Inject constructor(
|
||||||
private val secureBackupPreference by lazy {
|
private val secureBackupPreference by lazy {
|
||||||
findPreference<VectorPreference>("SETTINGS_SECURE_BACKUP_RECOVERY_PREFERENCE_KEY")!!
|
findPreference<VectorPreference>("SETTINGS_SECURE_BACKUP_RECOVERY_PREFERENCE_KEY")!!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private val ignoredUsersPreference by lazy {
|
||||||
|
findPreference<VectorPreference>("SETTINGS_IGNORED_USERS_PREFERENCE_KEY")!!
|
||||||
|
}
|
||||||
// private val secureBackupResetPreference by lazy {
|
// private val secureBackupResetPreference by lazy {
|
||||||
// findPreference<VectorPreference>(VectorPreferences.SETTINGS_SECURE_BACKUP_RESET_PREFERENCE_KEY)
|
// findPreference<VectorPreference>(VectorPreferences.SETTINGS_SECURE_BACKUP_RESET_PREFERENCE_KEY)
|
||||||
// }
|
// }
|
||||||
|
@ -275,6 +279,11 @@ class VectorSettingsSecurityPrivacyFragment @Inject constructor(
|
||||||
ContextCompat.getDrawable(it, R.drawable.ic_secure_backup)!!, R.attr.vctr_content_primary)
|
ContextCompat.getDrawable(it, R.drawable.ic_secure_backup)!!, R.attr.vctr_content_primary)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ignoredUsersPreference.icon = activity?.let {
|
||||||
|
ThemeUtils.tintDrawable(it,
|
||||||
|
ContextCompat.getDrawable(it, R.drawable.ic_settings_root_ignored_users)!!, R.attr.vctr_content_primary)
|
||||||
|
}
|
||||||
|
|
||||||
findPreference<VectorPreference>(VectorPreferences.SETTINGS_CRYPTOGRAPHY_HS_ADMIN_DISABLED_E2E_DEFAULT)?.let {
|
findPreference<VectorPreference>(VectorPreferences.SETTINGS_CRYPTOGRAPHY_HS_ADMIN_DISABLED_E2E_DEFAULT)?.let {
|
||||||
it.icon = ThemeUtils.tintDrawableWithColor(
|
it.icon = ThemeUtils.tintDrawableWithColor(
|
||||||
ContextCompat.getDrawable(requireContext(), R.drawable.ic_notification_privacy_warning)!!,
|
ContextCompat.getDrawable(requireContext(), R.drawable.ic_notification_privacy_warning)!!,
|
||||||
|
|
Loading…
Reference in New Issue