If the View
not tied to the window, I see this happening, kindly provided what looks like an error in Android. Thus, this can be a matter of time, so you do not send or remove Runnable
until after that, the View
is attached to the window.
If you have a sample project lying around that replicates this problem, I would like to take a look at it. Otherwise, I will try to make my own, so that I can have something that I can use to report my alleged error.
UPDATE
As mentioned in the comments, removeCallbacks()
for more ordinary widgets works, so it seems that this is a WebView
specific problem, modeled on OP code.
source share