pull/1606/head
kunfei 3 years ago
parent 1849b6cc1b
commit 0bb17ffc82
  1. 3
      app/src/main/java/io/legado/app/help/exoplayer/OkhttpCacheDataSource.java

@ -253,6 +253,7 @@ public final class OkhttpCacheDataSource implements DataSource {
return this; return this;
} }
@NonNull
@Override @Override
public OkhttpCacheDataSource createDataSource() { public OkhttpCacheDataSource createDataSource() {
return createDataSourceInternal( return createDataSourceInternal(
@ -683,7 +684,6 @@ public final class OkhttpCacheDataSource implements DataSource {
} }
@SuppressWarnings("NullableProblems")
@Nullable @Nullable
@Override @Override
public Uri getUri() { public Uri getUri() {
@ -693,7 +693,6 @@ public final class OkhttpCacheDataSource implements DataSource {
@NonNull @NonNull
@Override @Override
public Map<String, List<String>> getResponseHeaders() { public Map<String, List<String>> getResponseHeaders() {
// TODO: Implement.
return isReadingFromUpstream() return isReadingFromUpstream()
? upstreamDataSource.getResponseHeaders() ? upstreamDataSource.getResponseHeaders()
: Collections.emptyMap(); : Collections.emptyMap();

Loading…
Cancel
Save