diff --git a/core/java/android/view/WindowManager.java b/core/java/android/view/WindowManager.java index 8cb05da93b7f8..76071278edf83 100644 --- a/core/java/android/view/WindowManager.java +++ b/core/java/android/view/WindowManager.java @@ -1162,7 +1162,7 @@ public interface WindowManager extends ViewManager { /** * Window type: shows directly above the keyguard. The layer is - * reserved for screenshot region selection. These windows must not take input focus. + * reserved for screenshot animation, region selection and UI. * In multiuser systems shows only on the owning user's window. * @hide */ diff --git a/services/core/java/com/android/server/wm/DisplayPolicy.java b/services/core/java/com/android/server/wm/DisplayPolicy.java index eb5cff6d5ad85..a26d3fb90ade9 100644 --- a/services/core/java/com/android/server/wm/DisplayPolicy.java +++ b/services/core/java/com/android/server/wm/DisplayPolicy.java @@ -874,10 +874,6 @@ public class DisplayPolicy { } break; - case TYPE_SCREENSHOT: - attrs.flags |= WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE; - break; - case TYPE_TOAST: // While apps should use the dedicated toast APIs to add such windows // it possible legacy apps to add the window directly. Therefore, we