mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-01-29 18:39:27 +01:00
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 {
|
||||
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 {
|
||||
// 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)
|
||||
}
|
||||
|
||||
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 {
|
||||
it.icon = ThemeUtils.tintDrawableWithColor(
|
||||
ContextCompat.getDrawable(requireContext(), R.drawable.ic_notification_privacy_warning)!!,
|
||||
|
Loading…
x
Reference in New Issue
Block a user