Defer tap outside stack until multiwindows
Taps outside of the stack boundary were causing the current app to lose focus. This led to timeouts waiting for the app to respond. Disabling the tap recognition keeps the focus from changing. It will be reenabled for multiwindows. Fixes bug 17721767. Change-Id: Iad854b19979390e73b97239e489ad7ef82e03d47
This commit is contained in:
@@ -8060,16 +8060,16 @@ public class WindowManagerService extends IWindowManager.Stub
|
||||
break;
|
||||
|
||||
case TAP_OUTSIDE_STACK: {
|
||||
int stackId;
|
||||
synchronized (mWindowMap) {
|
||||
stackId = ((DisplayContent)msg.obj).stackIdFromPoint(msg.arg1, msg.arg2);
|
||||
}
|
||||
if (stackId >= 0) {
|
||||
try {
|
||||
mActivityManager.setFocusedStack(stackId);
|
||||
} catch (RemoteException e) {
|
||||
}
|
||||
}
|
||||
// int stackId;
|
||||
// synchronized (mWindowMap) {
|
||||
// stackId = ((DisplayContent)msg.obj).stackIdFromPoint(msg.arg1, msg.arg2);
|
||||
// }
|
||||
// if (stackId >= 0) {
|
||||
// try {
|
||||
// mActivityManager.setFocusedStack(stackId);
|
||||
// } catch (RemoteException e) {
|
||||
// }
|
||||
// }
|
||||
}
|
||||
break;
|
||||
case NOTIFY_ACTIVITY_DRAWN:
|
||||
|
||||
Reference in New Issue
Block a user