Skip to content

Commit 55c7029

Browse files
sganovAndroid (Google) Code Review
authored andcommitted
Merge "Show the touch explore enable dialog for the current user." into jb-mr1-dev
2 parents 4efbab4 + 318b00b commit 55c7029

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)