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

Commit 56139792 authored by Svet Ganov's avatar Svet Ganov
Browse files

Don't warn for displays with no input device matching.

Creating a virtual display via the public APIs prevents from
using the @hide VIRTUAL_DISPLAY_FLAG_SUPPORTS_TOUCH flag in
createVirtualDisplay. Not passing this flag results in
viewport DisplayDeviceInfo.TOUCH_NONE, i.e. the input system
will not be dispatching to it. This results in a warning being
logged for a valid per public API contract case.

Test: No warning logs for displays with no input device matching.

Upstream from Meta.

Change-Id: I0d4386542a85cdf4c6322d934338dbde4ae2bb10
parent 9e7649d5
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2218,8 +2218,10 @@ public final class DisplayManagerService extends SystemService {
                }
                // fallthrough
            default:
                if (DEBUG) {
                    Slog.w(TAG, "Display " + info + " does not support input device matching.");
                }
        }
        return Optional.empty();
    }