Set correct window title in Global Actions Dialog

This way it will be properly announced by a11y services.

Fixes: 208956672
Test: manual

Change-Id: Ifb28669e2aa0e51abc4f66e5065f91f4f0638f0b
This commit is contained in:
Fabián Kozynski
2023-06-14 13:19:39 -04:00
parent 0501f85c58
commit 3602bc8a3f

View File

@@ -2303,6 +2303,8 @@ public class GlobalActionsDialogLite implements DialogInterface.OnDismissListene
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getWindow().setTitle(getContext().getString(
com.android.systemui.R.string.accessibility_quick_settings_power_menu));
initializeLayout();
mWindowDimAmount = getWindow().getAttributes().dimAmount;
getOnBackInvokedDispatcher().registerOnBackInvokedCallback(