Make sure we post setLayerType() calls from AnimationListeners

Animation seems to dispatch it's listener callbacks in the main
loop, which in this case is in View.draw(). This can leave View's
paint in a wierd state and result in the crash. We now post the
setLayerType() call avoiding the crash.

BUG: 23659571
Change-Id: I0541425e08a6a471faf08e310763d869fd42cb3d
1 file changed