OSDN Git Service

Merge "Prevent windows in pinned stack from gaining window focus."
[android-x86/frameworks-base.git] / core / java / android / app / ActivityManager.java
index f7d765c..a847a4d 100644 (file)
@@ -543,6 +543,11 @@ public class ActivityManager {
             return stackId == FREEFORM_WORKSPACE_STACK_ID
                     || stackId == FULLSCREEN_WORKSPACE_STACK_ID || stackId == DOCKED_STACK_ID;
         }
+
+        /** Returns true if the windows in the stack can receive input keys. */
+        public static boolean canReceiveKeys(int stackId) {
+            return stackId != PINNED_STACK_ID;
+        }
     }
 
     /**