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

Commit ebdf858c authored by Robert Carr's avatar Robert Carr
Browse files

Fix name for canReceiveTouchInput

Actually this function is used to indicate if a window
can't receive touch input.

Test: Builds
Change-Id: If3d2001084a632c90e90a59a069989831879dd22
parent bd26e652
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -402,7 +402,7 @@ final class InputMonitor {
            final InputChannel inputChannel = w.mInputChannel;
            final InputWindowHandle inputWindowHandle = w.mInputWindowHandle;
            if (inputChannel == null || inputWindowHandle == null || w.mRemoved
                    || w.canReceiveTouchInput()) {
                    || w.cantReceiveTouchInput()) {
                // Skip this window because it cannot possibly receive input.
                return;
            }
+3 −3
Original line number Diff line number Diff line
@@ -2396,11 +2396,11 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
                && (mViewVisibility == View.VISIBLE) && !mRemoveOnExit
                && ((mAttrs.flags & WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE) == 0)
                && (mAppToken == null || mAppToken.windowsAreFocusable())
                && !canReceiveTouchInput();
                && !cantReceiveTouchInput();
    }

    /** @return true if this window desires touch events. */
    boolean canReceiveTouchInput() {
    /** @return false if this window desires touch events. */
    boolean cantReceiveTouchInput() {
        return mAppToken != null && mAppToken.getTask() != null
                && mAppToken.getTask().mStack.shouldIgnoreInput();
    }