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

Skip to content
Commit 9f363c62 authored by MingWei's avatar MingWei Committed by MingWei Liao
Browse files

Improve content capture trace and prevent redundant works

1. Only start trace session when content capture is enabled.
2. Only start notifyContentCaptureEvents loop when content capture is
   enabled.
3. Make sure FLAG_SECURE will not have effect when the session is
   already disabled by the app. Otherwise, the default absense of
   FLAG_SECURE will temporarily override the disabling state by app.
   This would make ViewRootImpl cache the incorrect state during startup
   and run some redundant works.

BUG: 295199827
Test: refactoring CL. Existing unit tests still pass.
Change-Id: I422c7f9af6ce296cdb26d5575445f50fc298de4f
parent 8e10e17e
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