[WIFI-WEP] Change the strings for WEP.
Test: Visual Test Fix: 303787048 Change-Id: I674944aee08b8bd3a9185d38b2c76b4ad16061f1
This commit is contained in:
@@ -2060,21 +2060,21 @@
|
|||||||
<!-- Wi-Fi settings dialog. Text to show in toast for when user turns on wifi scanning. [CHAR LIMIT=NONE] -->
|
<!-- Wi-Fi settings dialog. Text to show in toast for when user turns on wifi scanning. [CHAR LIMIT=NONE] -->
|
||||||
<string name="wifi_settings_scanning_required_enabled">Wi\u2011Fi scanning turned on</string>
|
<string name="wifi_settings_scanning_required_enabled">Wi\u2011Fi scanning turned on</string>
|
||||||
<!-- Wi-Fi settings dialog. Warning on the password entry page for a WEP network, when WEP networks are allowed. [CHAR LIMIT=NONE] -->
|
<!-- Wi-Fi settings dialog. Warning on the password entry page for a WEP network, when WEP networks are allowed. [CHAR LIMIT=NONE] -->
|
||||||
<string name="wifi_settings_warning_wep_network">This network uses an older security protocol that\u0027s less secure</string>
|
<string name="wifi_settings_warning_wep_network">This network uses an older security protocol called WEP, which is less secure</string>
|
||||||
<!-- Wi-Fi settings dialog. Title of dialog displayed when WEP network is blocked. [CHAR LIMIT=NONE] -->
|
<!-- Wi-Fi settings dialog. Title of dialog displayed when WEP network is blocked. [CHAR LIMIT=NONE] -->
|
||||||
<string name="wifi_settings_wep_networks_blocked_title"><xliff:g id="name">%1$s</xliff:g> is blocked</string>
|
<string name="wifi_settings_wep_networks_blocked_title"><xliff:g id="name">%1$s</xliff:g> is blocked</string>
|
||||||
<!-- Wi-Fi settings dialog. Summary text of dialog displayed when WEP network toggle is turned off. [CHAR LIMIT=NONE] -->
|
<!-- Wi-Fi settings dialog. Summary text of dialog displayed when WEP network toggle is turned off. [CHAR LIMIT=NONE] -->
|
||||||
<string name="wifi_settings_wep_networks_summary_toggle_off">This network uses an older security protocol called WEP, which is less secure. To connect anyway, you can allow WEP networks.</string>
|
<string name="wifi_settings_wep_networks_summary_toggle_off">This network uses an older security protocol called WEP, which is less secure. To connect anyway, you can allow WEP networks.</string>
|
||||||
<!-- Wi-Fi settings dialog. Summary text of dialog displayed when WEP network is blocked by the carrier. [CHAR LIMIT=NONE] -->
|
<!-- Wi-Fi settings dialog. Summary text of dialog displayed when WEP network is blocked by the carrier. [CHAR LIMIT=NONE] -->
|
||||||
<string name="wifi_settings_wep_networks_summary_blocked_by_carrier">Your carrier doesn\u0027t allow you to connect to this network because it uses an older security protocol that’s less secure</string>
|
<string name="wifi_settings_wep_networks_summary_blocked_by_carrier">Your carrier doesn\u0027t allow you to connect to this network because it uses an older security protocol called WEP, which is less secure</string>
|
||||||
<!-- Wi-Fi settings dialog. Button text of dialog displayed when WEP network toggle is turned off. [CHAR LIMIT=NONE] -->
|
<!-- Wi-Fi settings dialog. Button text of dialog displayed when WEP network toggle is turned off. [CHAR LIMIT=NONE] -->
|
||||||
<string name="wifi_settings_wep_networks_button_allow">Allow WEP</string>
|
<string name="wifi_settings_wep_networks_button_allow">Allow WEP</string>
|
||||||
<!-- Wi-Fi settings dialog. Button text of dialog displayed when WEP network toggle is blocked. [CHAR LIMIT=NONE] -->
|
<!-- Wi-Fi settings dialog. Button text of dialog displayed when WEP network toggle is blocked. [CHAR LIMIT=NONE] -->
|
||||||
<string name="wifi_settings_ssid_block_button_close">Close</string>
|
<string name="wifi_settings_ssid_block_button_close">Close</string>
|
||||||
<!-- Wi-Fi settings dialog. Title of dialog displayed when the user turns off “Allow WEP networks” while connected to a WEP network. [CHAR LIMIT=NONE] -->
|
<!-- Wi-Fi settings dialog. Title of dialog displayed when the user turns off “Allow WEP networks” while connected to a WEP network. [CHAR LIMIT=NONE] -->
|
||||||
<string name="wifi_settings_wep_networks_disconnect_title">Disconnect from <xliff:g id="name">%1$s</xliff:g>?</string>
|
<string name="wifi_settings_wep_networks_disconnect_title">Stop allowing WEP networks?</string>
|
||||||
<!-- Wi-Fi settings dialog. Summary text of dialog displayed when the user turns off “Allow WEP networks” while connected to a WEP network. [CHAR LIMIT=NONE] -->
|
<!-- Wi-Fi settings dialog. Summary text of dialog displayed when the user turns off “Allow WEP networks” while connected to a WEP network. [CHAR LIMIT=NONE] -->
|
||||||
<string name="wifi_settings_wep_networks_disconnect_summary">You\u0027re connected to a WEP network. If you block these networks, you\u0027ll be disconnected.</string>
|
<string name="wifi_settings_wep_networks_disconnect_summary">You\u0027re connected to a WEP network. If you stop allowing these networks, you\u0027ll be disconnected.</string>
|
||||||
|
|
||||||
<!-- Dialog for Access Points --> <skip />
|
<!-- Dialog for Access Points --> <skip />
|
||||||
<!-- Label to show/hide advanced options [CHAR LIMIT=40] -->
|
<!-- Label to show/hide advanced options [CHAR LIMIT=40] -->
|
||||||
|
@@ -28,7 +28,6 @@ import androidx.compose.runtime.setValue
|
|||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
import androidx.compose.ui.res.stringResource
|
import androidx.compose.ui.res.stringResource
|
||||||
import androidx.compose.ui.text.style.TextAlign
|
import androidx.compose.ui.text.style.TextAlign
|
||||||
import androidx.fragment.app.Fragment
|
|
||||||
import androidx.lifecycle.compose.collectAsStateWithLifecycle
|
import androidx.lifecycle.compose.collectAsStateWithLifecycle
|
||||||
import com.android.settings.R
|
import com.android.settings.R
|
||||||
import com.android.settings.spa.preference.ComposePreferenceController
|
import com.android.settings.spa.preference.ComposePreferenceController
|
||||||
@@ -77,7 +76,7 @@ class WepNetworksPreferenceController(context: Context, preferenceKey: String) :
|
|||||||
SettingsAlertDialogWithIcon(
|
SettingsAlertDialogWithIcon(
|
||||||
onDismissRequest = { openDialog = false },
|
onDismissRequest = { openDialog = false },
|
||||||
confirmButton = AlertDialogButton(
|
confirmButton = AlertDialogButton(
|
||||||
stringResource(R.string.wifi_disconnect_button_text)
|
stringResource(R.string.sim_action_yes)
|
||||||
) {
|
) {
|
||||||
wifiManager.setWepAllowed(false)
|
wifiManager.setWepAllowed(false)
|
||||||
wepAllowedFlow.override(false)
|
wepAllowedFlow.override(false)
|
||||||
@@ -87,10 +86,7 @@ class WepNetworksPreferenceController(context: Context, preferenceKey: String) :
|
|||||||
AlertDialogButton(
|
AlertDialogButton(
|
||||||
stringResource(R.string.wifi_cancel)
|
stringResource(R.string.wifi_cancel)
|
||||||
) { openDialog = false },
|
) { openDialog = false },
|
||||||
title = String.format(
|
title = stringResource(R.string.wifi_settings_wep_networks_disconnect_title),
|
||||||
stringResource(R.string.wifi_settings_wep_networks_disconnect_title),
|
|
||||||
wifiInfo.ssid.removeSurrounding("\"")
|
|
||||||
),
|
|
||||||
text = {
|
text = {
|
||||||
Text(
|
Text(
|
||||||
stringResource(R.string.wifi_settings_wep_networks_disconnect_summary),
|
stringResource(R.string.wifi_settings_wep_networks_disconnect_summary),
|
||||||
|
Reference in New Issue
Block a user