feat: Improve custom API URL dialog (#2033)

Signed-off-by: validcube <pun.butrach@gmail.com>
This commit is contained in:
Pun Butrach 2024-07-18 08:22:37 +07:00 committed by GitHub
parent 42ef2ca99d
commit 45f32040f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View File

@ -85,7 +85,7 @@ fun AdvancedSettingsScreen(
} }
SettingsListItem( SettingsListItem(
headlineContent = stringResource(R.string.api_url), headlineContent = stringResource(R.string.api_url),
supportingContent = apiUrl, supportingContent = stringResource(R.string.api_url_description),
modifier = Modifier.clickable { modifier = Modifier.clickable {
showApiUrlDialog = true showApiUrlDialog = true
} }

View File

@ -156,9 +156,10 @@
<string name="debug_logs_export_failed">Failed to export logs</string> <string name="debug_logs_export_failed">Failed to export logs</string>
<string name="debug_logs_export_success">Exported logs</string> <string name="debug_logs_export_success">Exported logs</string>
<string name="api_url">API URL</string> <string name="api_url">API URL</string>
<string name="api_url_description">The API used to download necessary files.</string>
<string name="api_url_dialog_title">Set custom API URL</string> <string name="api_url_dialog_title">Set custom API URL</string>
<string name="api_url_dialog_description">You may have issues with features when using a custom API URL.</string> <string name="api_url_dialog_description">Set the API URL of ReVanced Manager. ReVanced Manager uses the API to download patches and updates.</string>
<string name="api_url_dialog_warning">Only use API\'s you trust!</string> <string name="api_url_dialog_warning">ReVanced Manager connects to the API to download patches and updates. Make sure that you trust it.</string>
<string name="api_url_dialog_save">Set</string> <string name="api_url_dialog_save">Set</string>
<string name="device">Device</string> <string name="device">Device</string>
<string name="device_android_version">Android version</string> <string name="device_android_version">Android version</string>