1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-11-04 17:16:24 +00:00

Removed java.util.Objects calls

This commit is contained in:
Avently 2020-08-03 03:33:51 +03:00
parent fbb5c8cdd6
commit 45408caf33

View File

@ -112,7 +112,6 @@ import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Objects;
import java.util.concurrent.TimeUnit;
import icepick.State;
@ -1177,7 +1176,7 @@ public class VideoDetailFragment
// Video view can have elements visible from popup,
// We hide it here but once it ready the view will be shown in handleIntent()
Objects.requireNonNull(playerService.getView()).setVisibility(View.GONE);
playerService.getView().setVisibility(View.GONE);
addVideoPlayerView();
final Intent playerIntent = NavigationHelper
@ -1351,7 +1350,7 @@ public class VideoDetailFragment
final int height;
if (player != null && player.isFullscreen()) {
height = isInMultiWindow()
? Objects.requireNonNull(getView()).getHeight()
? requireView().getHeight()
: activity.getWindow().getDecorView().getHeight();
} else {
height = isPortrait