diff --git a/res/values/strings.xml b/res/values/strings.xml
index 7abe9510858..165140ebab0 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -2060,21 +2060,21 @@
Wi\u2011Fi scanning turned on
- This network uses an older security protocol that\u0027s less secure
+ This network uses an older security protocol called WEP, which is less secure
%1$s is blocked
This network uses an older security protocol called WEP, which is less secure. To connect anyway, you can allow WEP networks.
- Your carrier doesn\u0027t allow you to connect to this network because it uses an older security protocol that’s less secure
+ Your carrier doesn\u0027t allow you to connect to this network because it uses an older security protocol called WEP, which is less secure
Allow WEP
Close
- Disconnect from %1$s?
+ Stop allowing WEP networks?
- You\u0027re connected to a WEP network. If you block these networks, you\u0027ll be disconnected.
+ You\u0027re connected to a WEP network. If you stop allowing these networks, you\u0027ll be disconnected.
diff --git a/src/com/android/settings/wifi/WepNetworksPreferenceController.kt b/src/com/android/settings/wifi/WepNetworksPreferenceController.kt
index 2db0e0201a6..2ce4bcd4d4f 100644
--- a/src/com/android/settings/wifi/WepNetworksPreferenceController.kt
+++ b/src/com/android/settings/wifi/WepNetworksPreferenceController.kt
@@ -28,7 +28,6 @@ import androidx.compose.runtime.setValue
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.style.TextAlign
-import androidx.fragment.app.Fragment
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import com.android.settings.R
import com.android.settings.spa.preference.ComposePreferenceController
@@ -77,7 +76,7 @@ class WepNetworksPreferenceController(context: Context, preferenceKey: String) :
SettingsAlertDialogWithIcon(
onDismissRequest = { openDialog = false },
confirmButton = AlertDialogButton(
- stringResource(R.string.wifi_disconnect_button_text)
+ stringResource(R.string.sim_action_yes)
) {
wifiManager.setWepAllowed(false)
wepAllowedFlow.override(false)
@@ -87,10 +86,7 @@ class WepNetworksPreferenceController(context: Context, preferenceKey: String) :
AlertDialogButton(
stringResource(R.string.wifi_cancel)
) { openDialog = false },
- title = String.format(
- stringResource(R.string.wifi_settings_wep_networks_disconnect_title),
- wifiInfo.ssid.removeSurrounding("\"")
- ),
+ title = stringResource(R.string.wifi_settings_wep_networks_disconnect_title),
text = {
Text(
stringResource(R.string.wifi_settings_wep_networks_disconnect_summary),