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

Skip to content
Commit 785756c9 authored by pjgowtham's avatar pjgowtham Committed by Gowtham PJ
Browse files

UdfpsHelper: Exclude dim layer from screenshots

The UDFPS dim layer was being captured in screenshots, resulting
in darkened or obscured screenshot content. This occurred because
the dim overlay window was included in the screenshot capture
process.

Use PRIVATE_FLAG_IS_ROUNDED_CORNERS_OVERLAY to exclude the dim
layer from screenshots, screen magnification, and mirroring. This
flag is appropriate for system overlays that should not appear in
captured content, similar to how display cutouts and rounded
corners are handled. It also makes the usage of
PRIVATE_FLAG_EXCLUDE_FROM_SCREEN_MAGNIFICATION redundant.

With this change, screenshots will capture the underlying content
without the UDFPS dimming overlay, providing users with clean
screenshots while maintaining proper UDFPS functionality.

Change-Id: I76b1b98e645fffeee580a279a38a87b0c93dab9f
parent b3f41dee
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment