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

Skip to content
Commit 638d2aa8 authored by Filip Pavlis's avatar Filip Pavlis
Browse files

Restrict access to private flags.

Specifially restrict access to mPrivateFlags and mPrivateFlags2. We
were not able to find a legitimate use-case. Several flags have
corresponding public APIs. We are deliberately breaking the usage
of any flags that don't have alternative API already as it breaks
encapsulation of the View class that is supposed to manage these
flags on its own.

Some examples of existing public APIs for important flags:
PFLAG_FOCUSED
- hasFocus

PFLAG_SELECTED
- isSelected
- setSelected

PFLAG_HOVERED
- isHovered
- setHovered

PFLAG2_ACCESSIBILITY_FOCUSED
- isAccessibilityFocused
- requestAccessibilityFocus

Bug: b/123769414
Bug: b/123768943
Bug: b/129147060
Test: N/A
Change-Id: If8acd7e8b516e4ce6808dcd57485659b616e24ee
parent fe9f8eb8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment