mirror of
https://github.com/TeamNewPipe/NewPipe.git
synced 2024-11-22 02:53:09 +01:00
Fixed build
This commit is contained in:
parent
6992b2c308
commit
2f99a217c3
@ -12,8 +12,8 @@ import android.widget.Toast;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.appcompat.app.AlertDialog;
|
||||
|
||||
import com.google.android.exoplayer2.C;
|
||||
import com.google.android.exoplayer2.ExoPlaybackException;
|
||||
import com.google.android.exoplayer2.RendererCapabilities;
|
||||
|
||||
import org.schabi.newpipe.R;
|
||||
import org.schabi.newpipe.databinding.ListRadioIconItemBinding;
|
||||
@ -25,7 +25,6 @@ import java.io.IOException;
|
||||
import java.util.Collections;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.TimeoutException;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
/**
|
||||
@ -61,7 +60,7 @@ public final class VideoDetailPlayerCrasher {
|
||||
"Dummy renderer",
|
||||
0,
|
||||
null,
|
||||
RendererCapabilities.FORMAT_HANDLED
|
||||
C.FORMAT_HANDLED
|
||||
)
|
||||
);
|
||||
exceptionTypes.put(
|
||||
@ -74,13 +73,6 @@ public final class VideoDetailPlayerCrasher {
|
||||
"Remote",
|
||||
() -> ExoPlaybackException.createForRemote(defaultMsg)
|
||||
);
|
||||
exceptionTypes.put(
|
||||
"Timeout",
|
||||
() -> ExoPlaybackException.createForTimeout(
|
||||
new TimeoutException(defaultMsg),
|
||||
ExoPlaybackException.TIMEOUT_OPERATION_UNDEFINED
|
||||
)
|
||||
);
|
||||
|
||||
return Collections.unmodifiableMap(exceptionTypes);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user