commit | d81fed9a46023f2ec728a20fd130480bd5c90f73 | [log] [tgz] |
---|---|---|
author | Ian Lake <ilake@google.com> | Tue May 12 11:56:14 2015 -0700 |
committer | Ian Lake <ilake@google.com> | Tue May 12 12:02:05 2015 -0700 |
tree | 71dfacaa40698b2ba92c06399e6574a08b0f2209 | |
parent | e52e16988e2500e20052ddd70920f950f4eb4f79 [diff] |
Ensure MediaRouter.setMediaSessionCompat(null) does not crash While MediaRouter.setMediaSession() works with a null MediaSession, the Compat version failed on all API14+ devices with a NullPointerException. Ensure that passing in a null MediaSessionCompat is handled correctly - removing any existing RemoteControlClient (on API14-20 devices) and passing onto setMediaSession() on API21+ devices. BUG: 21035180 Change-Id: Ie5e11ca043fc4b6ce072eede7ba202985e28f0cb