mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-27 08:23:38 +00:00
[android] Display overlay layer state with icon
Fixes #1402 Signed-off-by: Harry Bond <me@hbond.xyz>
This commit is contained in:
committed by
Konstantin Pastbin
parent
4232de04ac
commit
d44f0ae7da
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user