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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user