Remove dead code

Also, remove code that would crash when deciding not
to run the dead code

(If the fragment is detached before the animation finishes)

Bug: 8759728
Change-Id: I6b8ce3b03077ff779e4f0e7d0b7c19e13a79bff2
4 files changed