[Android] Dismiss refresh spinner when showing the repost warn dialog
If the user cancels a refresh via the report form warning dialog, we
never get a callback that the page has been reloaded. Consequently,
for gesture-triggered reloads the refresh spinner would continue showing
after the reload cancellation.
Instead, simply cancel the refresh animation when the repost warning
dialog is shown. This avoids any associated callback guarantee issues
while also preventing animation jank as the dialog is shown.
Also set the MaterialProgressDrawable animation's repeat count back to
infinite, instead relying on the SwipeRefreshHandler container to
terminate the refresh animation after a reasonable upper limit.
BUG=485609
Review URL: https://codereview.chromium.org/
1131903003
Cr-Commit-Position: refs/heads/master@{#328825}