Prevent binding to DownloadService

DownloadService isn't designed to be bound.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=215552423
This commit is contained in:
eguven 2018-10-03 06:04:16 -07:00 committed by Oliver Woodman
parent 9f8c22d719
commit 645f08af73

View File

@ -303,10 +303,11 @@ public abstract class DownloadService extends Service {
maybeStopWatchingRequirements(); maybeStopWatchingRequirements();
} }
/** DownloadService isn't designed to be bound. */
@Nullable @Nullable
@Override @Override
public IBinder onBind(Intent intent) { public final IBinder onBind(Intent intent) {
return null; throw new UnsupportedOperationException();
} }
/** /**