Do not rename the string ressource (+ syntax fix)
This commit is contained in:
committed by
Koitharu
parent
065beb72e1
commit
58cdc9f29a
@@ -49,7 +49,7 @@ class SyncHostDialogFragment : AlertDialogFragment<PreferenceDialogAutocompletet
|
||||
topMargin = binding.root.resources.getDimensionPixelOffset(R.dimen.screen_padding)
|
||||
bottomMargin = topMargin
|
||||
}
|
||||
binding.message.setText(R.string.sync_url_description)
|
||||
binding.message.setText(R.string.sync_host_description)
|
||||
val entries = binding.root.resources.getStringArray(R.array.sync_url_list)
|
||||
val editText = binding.edit
|
||||
editText.setText(arguments?.getString(KEY_SYNC_URL).ifNullOrEmpty { syncSettings.syncURL })
|
||||
@@ -66,7 +66,7 @@ class SyncHostDialogFragment : AlertDialogFragment<PreferenceDialogAutocompletet
|
||||
DialogInterface.BUTTON_POSITIVE -> {
|
||||
val result = requireViewBinding().edit.text?.toString().orEmpty()
|
||||
var scheme = ""
|
||||
if ( ! result.startsWith("https://") && ! result.startsWith("http://")) {
|
||||
if (!result.startsWith("https://") && !result.startsWith("http://")) {
|
||||
scheme = "http://"
|
||||
}
|
||||
syncSettings.syncURL = "$scheme$result"
|
||||
|
||||
@@ -375,7 +375,7 @@
|
||||
<string name="find_similar">Find similar</string>
|
||||
<string name="sync_settings">Synchronization settings</string>
|
||||
<string name="server_address">Server address</string>
|
||||
<string name="sync_url_description">You can use a self-hosted synchronization server or a default one. Don\'t change this if you\'re not sure what you\'re doing.</string>
|
||||
<string name="sync_host_description">You can use a self-hosted synchronization server or a default one. Don\'t change this if you\'re not sure what you\'re doing.</string>
|
||||
<string name="ignore_ssl_errors">Ignore SSL errors</string>
|
||||
<string name="mirror_switching">Choose mirror automatically</string>
|
||||
<string name="mirror_switching_summary">Automatically switch domains for manga sources on errors if mirrors are available</string>
|
||||
|
||||
Reference in New Issue
Block a user