Reschedule timeout when accessibility event occurs

Fix setting up the accessibility delegate of dialog view. We need to set
the accessibility delegate of volume dialog whenever we assign a new
value to volume dialog. So we need to call Accessibilty.init everytime
we initialize the dialog.

Fixes: 201730401
Test: atest VolumeDialogImplTest
Test: Checked the timeout is rescheduled when there is an a11y event.

Change-Id: Ia8c807b5831559505813f4b81610c8e05a1bb41f
This commit is contained in:
Michael Mikhail
2023-06-05 17:19:07 +00:00
parent c6a789e74a
commit 55efb13603

View File

@@ -390,8 +390,6 @@ public class VolumeDialogImpl implements VolumeDialog, Dumpable,
public void init(int windowType, Callback callback) {
initDialog(mActivityManager.getLockTaskModeState());
mAccessibility.init();
mController.addCallback(mControllerCallbackH, mHandler);
mController.getState();
@@ -677,6 +675,7 @@ public class VolumeDialogImpl implements VolumeDialog, Dumpable,
initRingerH();
initSettingsH(lockTaskModeState);
initODICaptionsH();
mAccessibility.init();
}
private boolean isWindowGravityLeft() {