diff options
Diffstat (limited to 'src/github')
-rw-r--r-- | src/github/daneren2005/dsub/service/DownloadService.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java index c953823b..3f1c022c 100644 --- a/src/github/daneren2005/dsub/service/DownloadService.java +++ b/src/github/daneren2005/dsub/service/DownloadService.java @@ -1519,10 +1519,14 @@ public class DownloadService extends Service { } public void registerRoute(MediaRouter router) { - mRemoteControl.registerRoute(router); + if(mRemoteControl != null) { + mRemoteControl.registerRoute(router); + } } public void unregisterRoute(MediaRouter router) { - mRemoteControl.unregisterRoute(router); + if(mRemoteControl != null) { + mRemoteControl.unregisterRoute(router); + } } public void updateRemoteVolume(boolean up) { |