don't enable fullscreen mode when entering PIP mode

This commit is contained in:
Akinwale Ariwodola 2020-05-25 05:47:14 +01:00
parent d1167e4d2b
commit 7a79601cfc
2 changed files with 3 additions and 2 deletions

View file

@ -190,7 +190,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
public static SimpleExoPlayer appPlayer;
public static Cache playerCache;
public static boolean playerReassigned;
public static CastContext castContext;
public CastContext castContext;
public static CastPlayer castPlayer;
public static Claim nowPlayingClaim;
public static String nowPlayingClaimUrl;
@ -198,6 +198,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
public static boolean startingShareActivity = false;
public static boolean startingPermissionRequest = false;
public static boolean startingSignInFlowActivity = false;
@Getter
private boolean enteringPIPMode = false;
private boolean fullSyncInProgress = false;
private int queuedSyncCount = 0;

View file

@ -2196,7 +2196,7 @@ public class FileViewFragment extends BaseFragment implements
Context context = getContext();
if (context instanceof MainActivity) {
MainActivity activity = (MainActivity) context;
if (activity.isInPictureInPictureMode()) {
if (activity.isEnteringPIPMode() || activity.isInPictureInPictureMode()) {
return;
}
if (claim != null && claim.isPlayable() && !activity.isInFullscreenMode()) {