diff options
| author | 2024-07-02 10:31:54 +0000 | |
|---|---|---|
| committer | 2024-07-03 11:14:00 +0000 | |
| commit | 6ebc87e57da3437001057d4f9c07288bab4a1f7a (patch) | |
| tree | f45db358389bba00bfbc87950d79462c31661273 | |
| parent | 8cdf261e1752e331e746858dd80a602bc1cda698 (diff) | |
Add "H" for `state_hovered` to `StateSet.dump`.
The dump function is helpful when debugging state representation issues with drawables (e.g. button backgrounds). Adding a letter for "hover" will allow it to be used when investigating issues with mouse hover.
Change-Id: I86e1f61a050fba10eef1bc625ee64721e3c8f376
| -rw-r--r-- | core/java/android/util/StateSet.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/java/android/util/StateSet.java b/core/java/android/util/StateSet.java index 16d6082649a7..17adb32fb846 100644 --- a/core/java/android/util/StateSet.java +++ b/core/java/android/util/StateSet.java @@ -288,6 +288,9 @@ public class StateSet { case R.attr.state_activated: sb.append("A "); break; + case R.attr.state_hovered: + sb.append("H "); + break; } } |