You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the latest androidx material dependency 11.1.0-beta01, upon subscribing to the RxTabLayout selectionEvents observable an exception is thrown
Exception
Caused by: java.lang.ClassCastException: com.jakewharton.rxbinding3.material.TabLayoutSelectionEventsObservable$Listener cannot be cast to com.google.android.material.tabs.TabLayout$BaseOnTabSelectedListener
Related Issue
Discovered another issue that was fixed in July for the selections observable was merged here #517 related to this issue #495
Potential Fix
The fix would be to make this listener in TapLayoutSelectionEventsObservable extend from BaseOnTabSelectedListener like the other fix I mentioned earlier in the related issue section
The text was updated successfully, but these errors were encountered:
I am having this issue as well using the androidx material dependency version 1.1.0-rc01
java.lang.ClassCastException: com.jakewharton.rxbinding3.material.TabLayoutSelectionEventObservable$Listener cannot be cast to com.google.android.material.tabs.TabLayout$BaseOnTabSelectedListener
at com.jakewharton.rxbinding3.material.TabLayoutSelectionEventObservable.subscribeActual(TabLayoutSelectionEventObservable.kt:38)
I am using the latest androidx material dependency 11.1.0-beta01, upon subscribing to the RxTabLayout selectionEvents observable an exception is thrown
Exception
Caused by: java.lang.ClassCastException: com.jakewharton.rxbinding3.material.TabLayoutSelectionEventsObservable$Listener cannot be cast to com.google.android.material.tabs.TabLayout$BaseOnTabSelectedListener
Related Issue
Discovered another issue that was fixed in July for the selections observable was merged here #517 related to this issue #495
Potential Fix
The fix would be to make this listener in TapLayoutSelectionEventsObservable extend from BaseOnTabSelectedListener like the other fix I mentioned earlier in the related issue section
The text was updated successfully, but these errors were encountered: