Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit baf6bef0 authored by Craig Mautner's avatar Craig Mautner
Browse files

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
parent 299f960e
Loading
Loading
Loading
Loading
+10 −10
Original line number Diff line number Diff line
@@ -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: