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

Commit 69970d19 authored by Arpit Singh's avatar Arpit Singh Committed by Android (Google) Code Review
Browse files

Merge "Add flag for removing SKIP_SCREENSHOT for mouse cursor" into main

parents 8495e582 63eda5ec
Loading
Loading
Loading
Loading
+9 −0
Original line number Original line Diff line number Diff line
@@ -53,6 +53,15 @@ public:
     * connectedDisplaysCursorEnabled flag.
     * connectedDisplaysCursorEnabled flag.
     */
     */
    static bool scaleCursorSpeedWithDisplayDensity();
    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
} // namespace android
+4 −0
Original line number Original line Diff line number Diff line
@@ -68,4 +68,8 @@ bool InputFlags::scaleCursorSpeedWithDisplayDensity() {
    return com::android::input::flags::scale_cursor_speed_with_dpi();
    return com::android::input::flags::scale_cursor_speed_with_dpi();
}
}


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

} // namespace android
} // namespace android