mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
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:
parent
9f8c22d719
commit
645f08af73
1 changed files with 3 additions and 2 deletions
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue