Animation doesn't stop when handler is called
<p>I have a system which works like this:
- I start a spinner animation in my view when a network request is fired.
- When the request finishes (within a AsyncTask) the Animation is stopped.</p>

<p>This works fine except when the display turns off because of lack of user action. This code won't work in this situation:</p>

<pre><code>imgVwSpinner.post(new Runnable() {
    @Override
    public void run() {
        imgVwSpinner.clearAnimation();
        imgVwSpinner.setImageResource(R.drawable.refresh);
    }
});
</code></pre>

<p>Is there a workaround to ensure the animation is cleared?</p>
