Fix the media launch animation on lockscreen

This CL fixes the launch animation of the media player in the lockscreen
(when it is dismissable) and adds some additional checks by:
 - ensuring that we don't animate when the intent we start will launch
   a resolver activity.
 - deferring the keyguard dismissal when we animate so that the keyguard
   removal is driven by the animation.

Bug: 184726377
Test: Click the media player on lockscreen (with no security)
Change-Id: Id9c59adbf085bca9351fc6483ad81b4e68e16ee4
2 files changed