nhaarman
09/11/2017, 9:31 AM.subscribe { myEnum ->
when(myEnum) {
MyEnum.A -> ( ... )
MyEnum.B -> ( ... )
}
}
when(myEnum) will complain that myEnum can be null in Java and I should check for it in when. However, I know it won't be. It probably has something to do with the fact that the Rx library is written in java/