JakeWharton / SdkSearch

An Android app and Chrome extension for searching the Android SDK documentation.
Apache License 2.0
2.06k stars 176 forks source link

Search only returns Kotlin docs, not javadocs #186

Open nfischer opened 4 years ago

nfischer commented 4 years ago

I noticed this chrome extension always sends me to Kotlin docs instead of javadoc (ex. search for "WebView", select "android.webkit.WebView", and the extension opens https://developer.android.com/reference/kotlin/android/webkit/WebView). My team uses Java exclusively, so I'd be much happier if I could configure Java vs. Kotlin in extension preferences.

I stumbled across your comment and used that command to verify the API only returns Kotlin docs now. Is there a different API for Javadoc? If nothing else, I suppose you could hack it by substituting "reference/kotlin/" with "reference/" (although that won't work kotlin-only classes like BenchmarkState).

dfresh806 commented 4 years ago

So how do I get in those settings?

On Fri, Mar 27, 2020, 1:36 AM Nate Fischer notifications@github.com wrote:

I noticed this chrome extension always sends me to Kotlin docs instead of javadoc (ex. search for "WebView", select "android.webkit.WebView", and the extension opens https://developer.android.com/reference/kotlin/android/webkit/WebView). My team uses Java exclusively, so I'd be much happier if I could configure Java vs. Kotlin in extension preferences.

I stumbled across your comment https://github.com/JakeWharton/SdkSearch/issues/183#issuecomment-594723695 and used that command to verify the API only returns Kotlin docs now. Is there a different API for Javadoc? If nothing else, I suppose you could hack it by substituting "reference/kotlin/" with "reference/" (although that won't work kotlin-only classes like BenchmarkState https://developer.android.com/reference/kotlin/androidx/benchmark/BenchmarkState ).

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/JakeWharton/SdkSearch/issues/186, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOWHHT2LBPA32R37Z6FGS53RJRCQRANCNFSM4LUYZWEQ .

nfischer commented 4 years ago

So how do I get in those settings?

Sorry, the settings don't yet exist (as far as I'm aware). That was my suggestion for how this might be implemented in the future.