- Proper implementation of RemoteControlClientCompat +
RemoteControlHelper as a simple wrapper class, without reflection
- Properly unregister the RemoteControlClient from the MediaRoute before
destroying it
- Properly unregister the MediaButton handler when destroying the
RemoteControlClient
- Don't start the thread to update the lock screen image if
RemoteControlClient is not available.
- Removed unnecessary call to setPlaybackState() in setUpRemoteControl()
because it will be called again just after
- Removed unnecessary null checks for MediaRouter instance (it is never
null)
Disabled MediaRouter callbacks registration in contructor of
VideoCastManager, since the registration will occur in
incrementUiCounter().
It's still registered on startup for DataCastManager.