Added a bit more documentation

pull/7142/head
litetex 2021-10-01 18:44:47 +02:00
rodzic fb58967766
commit f18ee8e83d
1 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -27,8 +27,14 @@ import java.util.Map;
import java.util.concurrent.TimeoutException; import java.util.concurrent.TimeoutException;
import java.util.function.Supplier; import java.util.function.Supplier;
/**
* Outsourced logic for crashing the player in the {@link VideoDetailFragment}.
*/
public class VideoDetailPlayerCrasher { public class VideoDetailPlayerCrasher {
// This has to be <= 23 chars on devices running Android 7 or lower (API <= 25)
// or it fails with an IllegalArgumentException
// https://stackoverflow.com/a/54744028
private static final String TAG = "VideoDetPlayerCrasher"; private static final String TAG = "VideoDetPlayerCrasher";
@NonNull @NonNull
@ -109,6 +115,8 @@ public class VideoDetailPlayerCrasher {
return; return;
} }
// -- Build the dialog/UI --
final Context themeWrapperContext = getThemeWrapperContext(); final Context themeWrapperContext = getThemeWrapperContext();
final LayoutInflater inflater = LayoutInflater.from(themeWrapperContext); final LayoutInflater inflater = LayoutInflater.from(themeWrapperContext);