Skip to content

Commit 318b00b

Browse files
committed
Show the touch explore enable dialog for the current user.
1. We are showing a warning dialog if the user enables an accessibility service that requests explore by touch. This dialog was shown only for the owner but should be shown for the current user. bug:7304437 Change-Id: I692b5112df16405e6d2e4890aafbfde79981f973
1 parent bb5f014 commit 318b00b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

services/java/com/android/server/accessibility/AccessibilityManagerService.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1123,7 +1123,9 @@ public void onClick(DialogInterface dialog, int which) {
11231123
R.string.enable_explore_by_touch_warning_message, label))
11241124
.create();
11251125
mEnableTouchExplorationDialog.getWindow().setType(
1126-
WindowManager.LayoutParams.TYPE_INPUT_METHOD_DIALOG);
1126+
WindowManager.LayoutParams.TYPE_SYSTEM_ALERT);
1127+
mEnableTouchExplorationDialog.getWindow().getAttributes().privateFlags
1128+
|= WindowManager.LayoutParams.PRIVATE_FLAG_SHOW_FOR_ALL_USERS;
11271129
mEnableTouchExplorationDialog.setCanceledOnTouchOutside(true);
11281130
mEnableTouchExplorationDialog.show();
11291131
}

0 commit comments

Comments
 (0)