From 318b00bfeefa6dc05913c8eea0052d70185c7910 Mon Sep 17 00:00:00 2001 From: Svetoslav Ganov Date: Mon, 8 Oct 2012 13:17:40 -0700 Subject: 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 --- .../com/android/server/accessibility/AccessibilityManagerService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/java/com/android/server/accessibility/AccessibilityManagerService.java b/services/java/com/android/server/accessibility/AccessibilityManagerService.java index 6782f5ee18c1..3d77b3a9f467 100644 --- a/services/java/com/android/server/accessibility/AccessibilityManagerService.java +++ b/services/java/com/android/server/accessibility/AccessibilityManagerService.java @@ -1123,7 +1123,9 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub { R.string.enable_explore_by_touch_warning_message, label)) .create(); mEnableTouchExplorationDialog.getWindow().setType( - WindowManager.LayoutParams.TYPE_INPUT_METHOD_DIALOG); + WindowManager.LayoutParams.TYPE_SYSTEM_ALERT); + mEnableTouchExplorationDialog.getWindow().getAttributes().privateFlags + |= WindowManager.LayoutParams.PRIVATE_FLAG_SHOW_FOR_ALL_USERS; mEnableTouchExplorationDialog.setCanceledOnTouchOutside(true); mEnableTouchExplorationDialog.show(); } -- cgit v1.2.3-59-g8ed1b