JakeWharton / RxBinding

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

Kotlin view extension functions get WrongViewCast lint error #399

Closed ferhatparmak closed 7 years ago

ferhatparmak commented 7 years ago

When I compile my app against api 26, i can use generics for findViewById method but when I write this code:

findViewById<Button>(R.id.button_run).clicks()

I get "Unexpected implicit cast to Unit" lint error message.

Is this a lint bug or am I missing something?

JakeWharton commented 7 years ago

Seems like a lint bug. Does it work at runtime?

On Sun, Jul 23, 2017 at 12:48 PM Ferhat Parmak notifications@github.com wrote:

When I compile my app against api 26, i can use generics for findViewById method but when I write this code:

findViewById

ferhatparmak commented 7 years ago

Yes, its is working.

JakeWharton commented 7 years ago

I would file a bug on b.android.com/new then.

On Sun, Jul 23, 2017 at 1:06 PM Ferhat Parmak notifications@github.com wrote:

Yes, its is working.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/JakeWharton/RxBinding/issues/399#issuecomment-317245336, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEEEQcCId_w-nqJzirBDc8_a-jO-RWvks5sQykqgaJpZM4Oga27 .

JakeWharton commented 7 years ago

Can you link the bug so I can star it?

On Sun, Jul 23, 2017 at 2:25 PM Ferhat Parmak notifications@github.com wrote:

Closed #399 https://github.com/JakeWharton/RxBinding/issues/399.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/JakeWharton/RxBinding/issues/399#event-1175153221, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEEEYq6kNM_5q-qdkAuyh43Lu7mVAChks5sQzucgaJpZM4Oga27 .

ferhatparmak commented 7 years ago

Issue link, https://issuetracker.google.com/issues/63968954

JakeWharton commented 7 years ago

Thanks!

On Mon, Jul 24, 2017, 10:00 AM Ferhat Parmak notifications@github.com wrote:

Issue link, https://issuetracker.google.com/issues/63968954

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/JakeWharton/RxBinding/issues/399#issuecomment-317347861, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEEEQhhIYV5y_TIGQkSLYHUMnb4DLCCks5sRE8vgaJpZM4Oga27 .