Workaround for crash when Windows Media Player is active.
This commit is contained in:
parent
33c6eababa
commit
d950487610
1 changed files with 38 additions and 33 deletions
|
@ -490,8 +490,8 @@ public class RemotePlayService extends Service implements RegistryListener {
|
|||
device instanceof RemoteDevice) {
|
||||
mDevices.put(device.getIdentity().getUdn().toString(), device);
|
||||
|
||||
mUpnpService.getControlPoint().execute(
|
||||
new GetVolume(rc) {
|
||||
try {
|
||||
mUpnpService.getControlPoint().execute(new GetVolume(rc) {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
@Override
|
||||
|
@ -525,6 +525,11 @@ public class RemotePlayService extends Service implements RegistryListener {
|
|||
}
|
||||
});
|
||||
}
|
||||
catch (IllegalArgumentException e) {
|
||||
e.printStackTrace();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Reference in a new issue