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

Commit d01fd9b1 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge changes from topics "invert-some-inputconfig", "rm-touch-modal"

* changes:
  Remove the concept of TOUCH_MODAL from input
  Invert some InputConfig flags to simplify default behavior
parents e2bc1705 1d2653fe
Loading
Loading
Loading
Loading
+3 −8
Original line number Diff line number Diff line
@@ -185,14 +185,9 @@ bool NativeInputWindowHandle::updateInfo() {
                mInfo.inputConfig |= InputConfig::NOT_TOUCHABLE;
            }
            FALLTHROUGH_INTENDED;
        case InputConfig::NOT_TOUCH_MODAL:
            if (flags.test(WindowInfo::Flag::NOT_TOUCH_MODAL)) {
                mInfo.inputConfig |= InputConfig::NOT_TOUCH_MODAL;
            }
            FALLTHROUGH_INTENDED;
        case InputConfig::SPLIT_TOUCH:
            if (flags.test(WindowInfo::Flag::SPLIT_TOUCH)) {
                mInfo.inputConfig |= InputConfig::SPLIT_TOUCH;
        case InputConfig::PREVENT_SPLITTING:
            if (!flags.test(WindowInfo::Flag::SPLIT_TOUCH)) {
                mInfo.inputConfig |= InputConfig::PREVENT_SPLITTING;
            }
            FALLTHROUGH_INTENDED;
        case InputConfig::DUPLICATE_TOUCH_TO_WALLPAPER: