[android] Display overlay layer state with icon

Fixes #1402

Signed-off-by: Harry Bond <me@hbond.xyz>
This commit is contained in:
Harry Bond
2025-08-17 22:47:48 +01:00
committed by Konstantin Pastbin
parent 4232de04ac
commit d44f0ae7da
6 changed files with 19 additions and 9 deletions

View File

@@ -29,7 +29,7 @@ public class LayersButton extends FloatingActionButton
{
final int[] drawableState = super.onCreateDrawableState(extraSpace + 1);
if (mAreLayersActive)
mergeDrawableStates(drawableState, new int[] {R.attr.layers_enabled});
mergeDrawableStates(drawableState, new int[] {R.attr.state_layers_enabled});
return drawableState;
}