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

Commit c57e426c authored by Jay Thomas Sullivan's avatar Jay Thomas Sullivan Committed by Yi-an Chen
Browse files

[XPD] Provide state_has_icon_space drawable state

This change applies to Preferences that implement DrawableStateLayout
(or more specifically, Preferences whose layout's root view's class
implements DrawableStateLayout), and provides a new state,
"R.attr.state_has_icon_space".

The new state is a boolean that is true if and only if the Preference
has a visible icon frame.

This new state can, optionally, be conditioned against by the provided
DrawableStateLayout background of the preference (see change
I9597b867109de218b323f469a4dfbcc30d2564b5).

Test: manual
Relnote: N/A
Flag: com.android.settingslib.widget.theme.flags.is_expressive_design_enabled
Bug: 375480009
Change-Id: I501ee49d0010c19f874a743a8730d6f58996e6fc
parent 169f225d
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