Halil Ozercan
07/24/2020, 3:52 PMComparison of incompatible enums 'Direction' and '[ERROR : Direction.LEFT]' is always unsuccessful
Android Studio doesn't show any errors though. The offending line is #4
.dragGestureFilter(
dragObserver = dragObserver,
canDrag = {
it == Direction.LEFT || it == Direction.RIGHT
}
)
.dragGestureFilter(
dragObserver = dragObserver,
canDrag = {
it.name == "LEFT" || it.name == "RIGHT"
}
)
this compiles btw