From e5c00a7ef4957e2a605d384170316d5ab0c2fc0e Mon Sep 17 00:00:00 2001 From: litetex <40789489+litetex@users.noreply.github.com> Date: Tue, 21 Sep 2021 21:18:54 +0200 Subject: [PATCH] Added some doc --- .../newpipe/fragments/detail/VideoDetailPlayerCrasher.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailPlayerCrasher.java b/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailPlayerCrasher.java index fc2377657..d8a4a99d1 100644 --- a/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailPlayerCrasher.java +++ b/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailPlayerCrasher.java @@ -145,6 +145,12 @@ public class VideoDetailPlayerCrasher { alertDialog.show(); } + /** + * Note that this method does not crash the underlying exoplayer directly (it's not possible). + * It simply supplies a Exception to {@link Player#onPlayerError(ExoPlaybackException)}. + * @param player + * @param exception + */ private void tryCrashPlayerWith( @NonNull final Player player, @NonNull final ExoPlaybackException exception