Skip to content

Commit

Permalink
Show MollySocket url
Browse files Browse the repository at this point in the history
  • Loading branch information
p1gp1g committed Nov 21, 2024
1 parent fa452dd commit e6345ea
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,19 @@ class UnifiedPushSettingsFragment : DSLSettingsFragment(R.string.NotificationDel
summary = DSLSettingsText.from(getStatusSummary(state)),
)

textPref(
title = DSLSettingsText.from(R.string.UnifiedPushSettingsFragment__mollysocket_server_title),
summary = DSLSettingsText.from(
if (state.airGapped) {
getString(R.string.UnifiedPushSettingsFragment__mollysocket_server_sumarry_air_gapped)
} else {
state.mollySocketUrl ?: "Error"
}
)
)

dividerPref()

if (state.distributors.isEmpty()) {
textPref(
title = DSLSettingsText.from(R.string.UnifiedPushSettingsFragment__distributor_app),
Expand All @@ -74,8 +87,6 @@ class UnifiedPushSettingsFragment : DSLSettingsFragment(R.string.NotificationDel
)
}

dividerPref()

if (state.airGapped) {
val parameters = getServerParameters(state) ?: ""

Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values/strings2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -172,4 +172,6 @@
<string name="MollySocketLink_experienced_a_network_error_please_try_again">Experienced a network error. Please try again.</string>
<string name="UnifiedPushSettingsFragment__change_mollysocket_configuration_title">Scan MollySocket QR Code</string>
<string name="UnifiedPushSettingsFragment__change_mollysocket_configuration_summary">Tap to scan and select a new MollySocket server</string>
<string name="UnifiedPushSettingsFragment__mollysocket_server_title">MollySocket server</string>
<string name="UnifiedPushSettingsFragment__mollysocket_server_sumarry_air_gapped">Air gapped</string>
</resources>

0 comments on commit e6345ea

Please sign in to comment.