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

Commit 63eda5ec authored by Arpit Singh's avatar Arpit Singh
Browse files

Add flag for removing SKIP_SCREENSHOT for mouse cursor

This CL adds a flag for a temporary fix that removes the SKIP_SCREENSHOT
for the mouse cursor on external displays when the connected displays
developer options override is enabled.

Bug: 417951134
Bug: 412777943
Test: atest inputflinger_tests and manual
Flag: EXEMPT BUGFIX
Change-Id: Iff4341f82a5a3ffbb314293ce77910a953e77f87
parent 82dfa02a
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -53,6 +53,15 @@ public:
     * connectedDisplaysCursorEnabled flag.
     */
    static bool scaleCursorSpeedWithDisplayDensity();

    /**
     * This is a temporary fix that removes the SKIP_SCREENSHOT flag for the Mouse cursor. This is
     * only intended to be temporarily used as workaround only when connected displays dev option
     * is enabled.
     *
     * This will make mouse cursor visible on recordings and screenshots of secure windows.
     */
    static bool doNotUseSkipScreenshotFlagForMouseCursor();
};

} // namespace android
+4 −0
Original line number Diff line number Diff line
@@ -68,4 +68,8 @@ bool InputFlags::scaleCursorSpeedWithDisplayDensity() {
    return com::android::input::flags::scale_cursor_speed_with_dpi();
}

bool InputFlags::doNotUseSkipScreenshotFlagForMouseCursor() {
    return getConnectedDisplaysDevOptionValue().value_or(false);
}

} // namespace android