Fix Permissions Dialog animations

Make handler run on UI thread to avoid race conditions.
Update some logic to prevent animation from running when it
shouldn't be.

BUG: 24954323
Change-Id: Ia1635cbb3c9128080a8e4a9c3ce6ee935c4d957e
1 file changed