Fixed crash on app kill.
This commit is contained in:
parent
a861c1a81f
commit
3fc1f9f925
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ final class Provider extends MediaRouteProvider {
|
||||||
@Override
|
@Override
|
||||||
public void onDiscoveryRequestChanged(MediaRouteDiscoveryRequest request) {
|
public void onDiscoveryRequestChanged(MediaRouteDiscoveryRequest request) {
|
||||||
try {
|
try {
|
||||||
if (request != null && request.isActiveScan())
|
if (request != null && request.isActiveScan() && mIRemotePlayService != null)
|
||||||
mIRemotePlayService.startSearch(mListener);
|
mIRemotePlayService.startSearch(mListener);
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|
Reference in a new issue