summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Azhara Assanova <azharaa@google.com> 2025-03-19 13:54:53 +0000
committer Azhara Assanova <azharaa@google.com> 2025-03-19 13:54:53 +0000
commit677352d827d7aa856d840c82f76b46ac6f3bea1c (patch)
tree1256e582d8a1b9819507991af56148674dcc1d7d
parent887da176b29f38343005ba2ffc085572846138c2 (diff)
Fix window type for WEP and Advanced Protection dialogs above Settings
The previous window type FIRST_APPLICATION_WINDOW was incorrect and caused the dialog to be dimmed and TalkBack to not be focused. The current window type TYPE_APPLICATION fixes these issues by correctly placing the dialog in the window hierarchy. Bug: 404595933 Bug: 404439964 Bug: 353531691 Test: visual Test: checked with TalkBack Flag: EXEMPT bug fix Change-Id: I3f48f16c83f37c36e900c7aa1b85d8052644e99d
-rw-r--r--packages/SettingsLib/src/com/android/settingslib/wifi/WifiUtils.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SettingsLib/src/com/android/settingslib/wifi/WifiUtils.kt b/packages/SettingsLib/src/com/android/settingslib/wifi/WifiUtils.kt
index 2ed437c94439..4d38f1d551bb 100644
--- a/packages/SettingsLib/src/com/android/settingslib/wifi/WifiUtils.kt
+++ b/packages/SettingsLib/src/com/android/settingslib/wifi/WifiUtils.kt
@@ -487,7 +487,7 @@ open class WifiUtils {
context,
lifecycleOwner.lifecycleScope,
ssid,
- WindowManager.LayoutParams.FIRST_APPLICATION_WINDOW,
+ WindowManager.LayoutParams.TYPE_APPLICATION,
{ intent -> context.startActivity(intent) },
onAllowed
)