mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-19 16:19:33 +01:00
Update to libsignal 0.86.1
This commit is contained in:
@@ -9,7 +9,6 @@ import com.bumptech.glide.util.ContentLengthInputStream;
|
||||
|
||||
import org.signal.core.util.concurrent.SignalExecutors;
|
||||
import org.signal.core.util.logging.Log;
|
||||
import org.signal.libsignal.protocol.util.Pair;
|
||||
import org.thoughtcrime.securesms.util.Util;
|
||||
|
||||
import java.io.FilterInputStream;
|
||||
@@ -21,6 +20,8 @@ import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
|
||||
import kotlin.Pair;
|
||||
|
||||
import okhttp3.CacheControl;
|
||||
import okhttp3.Call;
|
||||
import okhttp3.OkHttpClient;
|
||||
@@ -137,9 +138,9 @@ public class ChunkedDataFetcher {
|
||||
List<ByteRange> requestPattern;
|
||||
try {
|
||||
if (firstChunk.isPresent()) {
|
||||
requestPattern = Stream.of(getRequestPattern(contentLength - firstChunk.get().second()))
|
||||
.map(b -> new ByteRange(b.start + firstChunk.get().second(),
|
||||
b.end + firstChunk.get().second(),
|
||||
requestPattern = Stream.of(getRequestPattern(contentLength - firstChunk.get().getSecond()))
|
||||
.map(b -> new ByteRange(b.start + firstChunk.get().getSecond(),
|
||||
b.end + firstChunk.get().getSecond(),
|
||||
b.ignoreFirst))
|
||||
.toList();
|
||||
} else {
|
||||
@@ -156,7 +157,7 @@ public class ChunkedDataFetcher {
|
||||
List<InputStream> streams = new ArrayList<>(controllers.size() + (firstChunk.isPresent() ? 1 : 0));
|
||||
|
||||
if (firstChunk.isPresent()) {
|
||||
streams.add(firstChunk.get().first());
|
||||
streams.add(firstChunk.get().getFirst());
|
||||
}
|
||||
|
||||
Stream.of(controllers).forEach(compositeController::addController);
|
||||
|
||||
Reference in New Issue
Block a user