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
1 changed files with 2 additions and 3 deletions

View File

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