JakeWharton / RxBinding

RxJava binding APIs for Android's UI widgets.
Apache License 2.0
9.68k stars 971 forks source link

RxView.Clicks does not support DisposableSingleObserver ?? #448

Closed taeyoung4808 closed 6 years ago

taeyoung4808 commented 6 years ago

this is my code:

2018-06-21 4 51 59

rxbinding clicks does not support DisposableSingleObserver ?

Joseph82 commented 6 years ago

You are actually trying to subscribe to an Observable, so you should use DisposableObserver and not DisposableSingleObserver. Unless you convert your source of data into Single before subscribing.

taeyoung4808 commented 6 years ago

@Joseph82

  1. sorry for my english level..

  2. i can't understand.. lnbFaceBook.startLogin() method return "Single.create", so loginResult is not it Single type??

"Single data" mean is not it Single.create ?

if then "Single data" is Single Object?

JakeWharton commented 6 years ago

Observable.switchMapSingle still returns an Observable. If you only want a single click you need to call something like single() or first() in the stream.