How to implement this in Kotlin?
# android
s
How to implement this in Kotlin?
c
Copy paste the java code into a kotlin file and the IDE will convert it for you.
Or put it into a .java file and then Code > Convert to kotlin file
☝🏼 1
r
side note: might be good to add
:
at the end of those startsWith? because it would match the url even if you did smth like
intentofmagic://...
e
also schemes are case-insensitive...
r
ah true
s
Thanks for the help
Why am I getting this warning?
r
because
return.super...
will hop out of your function, and therefore nothing after it will get ever executed
s
Got it, thanks