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

Commit 37ec53f0 authored by Danny Baumann's avatar Danny Baumann Committed by Gerrit Code Review
Browse files

Merge "Pie controls: Fix event handling on chained input filters" into cm-10.1

parents 72a641c8 e74de813
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1656,7 +1656,11 @@ public class InputManagerService extends IInputManager.Stub
                                policyFlags | WindowManagerPolicy.FLAG_FILTERED);
                    } else {
                        try {
                            mNext.mInputFilter.filterInputEvent(event, policyFlags);
                            // We need to pass a copy into filterInputEvent as it assumes
                            // the callee takes responsibility and recycles it - in case
                            // multiple filters are chained, calling into the second filter
                            // will cause event to be recycled twice
                            mNext.mInputFilter.filterInputEvent(event.copy(), policyFlags);
                        } catch (RemoteException e) {
                            /* ignore */
                        }