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

Skip to content
Commit 2b5c3c6c authored by Hiroki Sato's avatar Hiroki Sato
Browse files

Fullscreen Magnification updates pointer icon on non-transient change

Changing pointer icon scale involves resource loading, which is
expensive. Thus, we want to change the size of pointer icon only when
the change is not transient, i.e., not during animation, user's gesture,
moving a slider bar in settings panel, etc.

In order to update it, this change adds `isScaleTransient` parameter to
all the entrance point of changing fullscreen magnification scale so
that when the change is actually applied, we can tell whether we should
update a pointer icon size.

The change itself is big, but most of them are mechanical change of
method signatures and the behavior is controlled behind the aconfig
flag.

Bug: 355734856
Test: Enable flag, and changing scale with slider or gesture will change pointer icons.
Test: atest com.android.server.accessibility.magnification
Flag: com.android.server.accessibility.magnification_enlarge_pointer

Change-Id: Ibd8c0aa05c047c3977f8d2e7fc5d50f2193705fa
parent 5a2c7673
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