Fix default window type for Advanced Protection dialog
The previous window type FIRST_APPLICATION_WINDOW was incorrect and could have 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: I520220c1527868b6fc928eaa35184ba9b0159e06
This commit is contained in:
@@ -118,7 +118,7 @@ class ActionDisabledByAdvancedProtectionDialog : SpaDialogWindowTypeActivity() {
|
||||
}
|
||||
|
||||
override fun getDialogWindowType(): Int? = if (intent.hasExtra(DIALOG_WINDOW_TYPE)) {
|
||||
intent.getIntExtra(DIALOG_WINDOW_TYPE, WindowManager.LayoutParams.FIRST_APPLICATION_WINDOW)
|
||||
intent.getIntExtra(DIALOG_WINDOW_TYPE, WindowManager.LayoutParams.TYPE_APPLICATION)
|
||||
} else null
|
||||
|
||||
private fun getIntentFeatureId(): Int {
|
||||
|
Reference in New Issue
Block a user