mirror of
https://github.com/oxen-io/session-android.git
synced 2025-04-17 01:41:25 +00:00
Avatar dialog shows a red "remove" button
This commit is contained in:
parent
0218bf9dc3
commit
ad944e3398
@ -581,6 +581,7 @@ class SettingsActivity : PassphraseRequiredActionBarActivity() {
|
|||||||
DialogButtonModel(
|
DialogButtonModel(
|
||||||
text = GetString(R.string.remove),
|
text = GetString(R.string.remove),
|
||||||
contentDescription = GetString(R.string.AccessibilityId_remove),
|
contentDescription = GetString(R.string.AccessibilityId_remove),
|
||||||
|
color = LocalColors.current.danger,
|
||||||
enabled = state is UserAvatar || // can remove is the user has an avatar set
|
enabled = state is UserAvatar || // can remove is the user has an avatar set
|
||||||
(state is TempAvatar && state.hasAvatar),
|
(state is TempAvatar && state.hasAvatar),
|
||||||
onClick = removeAvatar
|
onClick = removeAvatar
|
||||||
|
Loading…
x
Reference in New Issue
Block a user