Skip to content

Commit

Permalink
Show hint for signature
Browse files Browse the repository at this point in the history
  • Loading branch information
moezbhatti committed Nov 9, 2019
1 parent 7b9aa89 commit c1e2ef0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ class SettingsController : QkController<SettingsView, SettingsState, SettingsPre

delivery.checkbox.isChecked = state.deliveryEnabled

signature.summary = state.signature
signature.summary = state.signature.takeIf { it.isNotBlank() }
?: context.getString(R.string.settings_signature_summary)

textSize.summary = state.textSizeSummary
textSizeDialog.adapter.selectedItem = state.textSizeId
Expand Down
1 change: 1 addition & 0 deletions presentation/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@
<string name="settings_delivery_title">Delivery confirmations</string>
<string name="settings_delivery_summary">Confirm that messages were sent successfully</string>
<string name="settings_signature_title">Signature</string>
<string name="settings_signature_summary">Add a signature to the end of your messages</string>
<string name="settings_unicode_title">Strip accents</string>
<string name="settings_unicode_summary">Remove accents from characters in outgoing SMS messages</string>
<string name="settings_mobile_title">Mobile numbers only</string>
Expand Down

0 comments on commit c1e2ef0

Please sign in to comment.