Added a bit more documentation
This commit is contained in:
parent
fb58967766
commit
f18ee8e83d
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue