@ -81,6 +81,7 @@ import org.thoughtcrime.securesms.ui.LocalDimensions
import org.thoughtcrime.securesms.ui.components.OutlineButton
import org.thoughtcrime.securesms.ui.components.OutlineCopyButton
import org.thoughtcrime.securesms.ui.color.destructiveButtonColors
import org.thoughtcrime.securesms.ui.contentDescription
import org.thoughtcrime.securesms.ui.setThemedContent
import org.thoughtcrime.securesms.util.BitmapDecodingException
import org.thoughtcrime.securesms.util.BitmapUtil
@ -412,27 +413,27 @@ class SettingsActivity : PassphraseRequiredActionBarActivity() {
Cell {
Column {
ItemButtonWithDrawable ( R . string . activity _path _title , icon = if ( hasPaths ) R . drawable . ic _status else R . drawable . ic _path _yellow ) { show < PathActivity > ( ) }
ItemButtonWithDrawable ( R . string . activity _path _title , if ( hasPaths ) R . drawable . ic _status else R . drawable . ic _path _yellow ) { show < PathActivity > ( ) }
Divider ( )
ItemButton ( R . string . activity _settings _privacy _button _title , icon = R . drawable . ic _privacy _icon ) { show < PrivacySettingsActivity > ( ) }
ItemButton ( R . string . activity _settings _privacy _button _title , R . drawable . ic _privacy _icon ) { show < PrivacySettingsActivity > ( ) }
Divider ( )
ItemButton ( R . string . activity _settings _notifications _button _title , icon = R . drawable . ic _speaker , contentDescription = R . string . AccessibilityId _notifications ) { show < NotificationSettingsActivity > ( ) }
ItemButton ( R . string . activity _settings _notifications _button _title , R . drawable . ic _speaker , Modifier . contentDescription ( R . string . AccessibilityId _notifications ) ) { show < NotificationSettingsActivity > ( ) }
Divider ( )
ItemButton ( R . string . activity _settings _conversations _button _title , icon = R . drawable . ic _conversations , contentDescription = R . string . AccessibilityId _conversations ) { show < ChatSettingsActivity > ( ) }
ItemButton ( R . string . activity _settings _conversations _button _title , R . drawable . ic _conversations , Modifier . contentDescription ( R . string . AccessibilityId _conversations ) ) { show < ChatSettingsActivity > ( ) }
Divider ( )
ItemButton ( R . string . activity _settings _message _requests _button _title , icon = R . drawable . ic _message _requests , contentDescription = R . string . AccessibilityId _message _requests ) { show < MessageRequestsActivity > ( ) }
ItemButton ( R . string . activity _settings _message _requests _button _title , R . drawable . ic _message _requests , Modifier . contentDescription ( R . string . AccessibilityId _message _requests ) ) { show < MessageRequestsActivity > ( ) }
Divider ( )
ItemButton ( R . string . activity _settings _message _appearance _button _title , icon = R . drawable . ic _appearance , contentDescription = R . string . AccessibilityId _appearance ) { show < AppearanceSettingsActivity > ( ) }
ItemButton ( R . string . activity _settings _message _appearance _button _title , R . drawable . ic _appearance , Modifier . contentDescription ( R . string . AccessibilityId _appearance ) ) { show < AppearanceSettingsActivity > ( ) }
Divider ( )
ItemButton ( R . string . activity _settings _invite _button _title , icon = R . drawable . ic _invite _friend , contentDescription = R . string . AccessibilityId _invite _friend ) { sendInvitationToUseSession ( ) }
ItemButton ( R . string . activity _settings _invite _button _title , R . drawable . ic _invite _friend , Modifier . contentDescription ( R . string . AccessibilityId _invite _friend ) ) { sendInvitationToUseSession ( ) }
Divider ( )
if ( ! prefs . getHidePassword ( ) ) {
ItemButton ( R . string . sessionRecoveryPassword , icon = R . drawable . ic _recovery _phrase , contentDescription = R . string . AccessibilityId _recovery _password _menu _item ) { show < RecoveryPasswordActivity > ( ) }
ItemButton ( R . string . sessionRecoveryPassword , R . drawable . ic _recovery _phrase , Modifier . contentDescription ( R . string . AccessibilityId _recovery _password _menu _item ) ) { show < RecoveryPasswordActivity > ( ) }
Divider ( )
}
ItemButton ( R . string . activity _settings _help _button , icon = R . drawable . ic _help , contentDescription = R . string . AccessibilityId _help ) { show < HelpSettingsActivity > ( ) }
ItemButton ( R . string . activity _settings _help _button , R . drawable . ic _help , Modifier . contentDescription ( R . string . AccessibilityId _help ) ) { show < HelpSettingsActivity > ( ) }
Divider ( )
ItemButton ( R . string . activity _settings _clear _all _data _button _title , colors = destructiveButtonColors ( ) , icon = R . drawable . ic _clear _data , contentDescription = R . string . AccessibilityId _clear _data ) { ClearAllDataDialog ( ) . show ( supportFragmentManager , " Clear All Data Dialog " ) }
ItemButton ( R . string . activity _settings _clear _all _data _button _title , R . drawable . ic _clear _data , Modifier . contentDescription ( R . string . AccessibilityId _clear _data ) , destructiveButtonColors ( ) ) { ClearAllDataDialog ( ) . show ( supportFragmentManager , " Clear All Data Dialog " ) }
}
}
}