mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-01-09 17:00:32 +00: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.annotation.NonNull;
|
||||||
import androidx.appcompat.app.AlertDialog;
|
import androidx.appcompat.app.AlertDialog;
|
||||||
|
|
||||||
|
import com.google.android.exoplayer2.C;
|
||||||
import com.google.android.exoplayer2.ExoPlaybackException;
|
import com.google.android.exoplayer2.ExoPlaybackException;
|
||||||
import com.google.android.exoplayer2.RendererCapabilities;
|
|
||||||
|
|
||||||
import org.schabi.newpipe.R;
|
import org.schabi.newpipe.R;
|
||||||
import org.schabi.newpipe.databinding.ListRadioIconItemBinding;
|
import org.schabi.newpipe.databinding.ListRadioIconItemBinding;
|
||||||
@ -25,7 +25,6 @@ import java.io.IOException;
|
|||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.LinkedHashMap;
|
import java.util.LinkedHashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.concurrent.TimeoutException;
|
|
||||||
import java.util.function.Supplier;
|
import java.util.function.Supplier;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -61,7 +60,7 @@ public final class VideoDetailPlayerCrasher {
|
|||||||
"Dummy renderer",
|
"Dummy renderer",
|
||||||
0,
|
0,
|
||||||
null,
|
null,
|
||||||
RendererCapabilities.FORMAT_HANDLED
|
C.FORMAT_HANDLED
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
exceptionTypes.put(
|
exceptionTypes.put(
|
||||||
@ -74,13 +73,6 @@ public final class VideoDetailPlayerCrasher {
|
|||||||
"Remote",
|
"Remote",
|
||||||
() -> ExoPlaybackException.createForRemote(defaultMsg)
|
() -> ExoPlaybackException.createForRemote(defaultMsg)
|
||||||
);
|
);
|
||||||
exceptionTypes.put(
|
|
||||||
"Timeout",
|
|
||||||
() -> ExoPlaybackException.createForTimeout(
|
|
||||||
new TimeoutException(defaultMsg),
|
|
||||||
ExoPlaybackException.TIMEOUT_OPERATION_UNDEFINED
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
return Collections.unmodifiableMap(exceptionTypes);
|
return Collections.unmodifiableMap(exceptionTypes);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user