From 645f08af73f4e69fa42a5256e64c11ae504ae2b8 Mon Sep 17 00:00:00 2001 From: eguven Date: Wed, 3 Oct 2018 06:04:16 -0700 Subject: [PATCH] Prevent binding to DownloadService DownloadService isn't designed to be bound. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=215552423 --- .../google/android/exoplayer2/offline/DownloadService.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/library/core/src/main/java/com/google/android/exoplayer2/offline/DownloadService.java b/library/core/src/main/java/com/google/android/exoplayer2/offline/DownloadService.java index 5c6cf88b48..e9492f6b87 100644 --- a/library/core/src/main/java/com/google/android/exoplayer2/offline/DownloadService.java +++ b/library/core/src/main/java/com/google/android/exoplayer2/offline/DownloadService.java @@ -303,10 +303,11 @@ public abstract class DownloadService extends Service { maybeStopWatchingRequirements(); } + /** DownloadService isn't designed to be bound. */ @Nullable @Override - public IBinder onBind(Intent intent) { - return null; + public final IBinder onBind(Intent intent) { + throw new UnsupportedOperationException(); } /**