mirror of
https://github.com/androidx/media.git
synced 2025-05-07 15:40:37 +08: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
@ -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…
x
Reference in New Issue
Block a user