From 45408caf330e9a4758fabc33aee7b3a1f7d0e4c0 Mon Sep 17 00:00:00 2001 From: Avently <7953703+avently@users.noreply.github.com> Date: Mon, 3 Aug 2020 03:33:51 +0300 Subject: [PATCH] Removed java.util.Objects calls --- .../schabi/newpipe/fragments/detail/VideoDetailFragment.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java b/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java index 6c459ffe9..2b4e40e5f 100644 --- a/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java +++ b/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java @@ -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