Fixed
Status Update
Comments
gg...@google.com <gg...@google.com> #2
Information redacted by Android Beta Feedback.
vi...@google.com <vi...@google.com> #3
redacted
al...@gmail.com <al...@gmail.com> #4
We’ve shared this with our product and engineering teams and will continue to provide updates as more information becomes available.
ra...@google.com <ra...@google.com>
pa...@google.com <pa...@google.com>
tn...@google.com <tn...@google.com> #5
Hey can I get an update on this issue?
an...@google.com <an...@google.com> #6
Thank you for reporting this issue. We have a fix rolling out in an upcoming release.
Description
kotlin always let ()->Unit as Runnable. But android Handler cannot removeCallbacks. Ex:
Above code will be compiled into:
The ()->Unit function has be wrapped by diff lambda, it's not same one. So, the android Handler can't removeCallback.
We have to replace with Runnable statement.
Could you please add some warning message just like SharedPreferences' commit() to removeCallback when using kotlin?