Merge pull request #4061 from avently/unsupported_api

Removed java.util.Objects calls
This commit is contained in:
Tobias Groza 2020-08-03 15:32:56 +02:00 committed by GitHub
commit 773316ce4f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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