Merge pull request #1004 from lbryio/player-resume-black-screen
display player view correctly after dismissing PIP view
This commit is contained in:
commit
45be7f2c9b
2 changed files with 4 additions and 0 deletions
|
@ -3095,6 +3095,9 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
||||||
if (appPlayer != null && inPictureInPictureMode && !isBackgroundPlaybackEnabled()) {
|
if (appPlayer != null && inPictureInPictureMode && !isBackgroundPlaybackEnabled()) {
|
||||||
appPlayer.setPlayWhenReady(false);
|
appPlayer.setPlayWhenReady(false);
|
||||||
}
|
}
|
||||||
|
if (inPictureInPictureMode) {
|
||||||
|
MainActivity.playerReassigned = true;
|
||||||
|
}
|
||||||
super.onStop();
|
super.onStop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -772,6 +772,7 @@ public class FileViewFragment extends BaseFragment implements
|
||||||
View root = getView();
|
View root = getView();
|
||||||
if (root != null) {
|
if (root != null) {
|
||||||
PlayerView view = root.findViewById(R.id.file_view_exoplayer_view);
|
PlayerView view = root.findViewById(R.id.file_view_exoplayer_view);
|
||||||
|
view.setVisibility(View.VISIBLE);
|
||||||
view.setPlayer(null);
|
view.setPlayer(null);
|
||||||
view.setPlayer(MainActivity.appPlayer);
|
view.setPlayer(MainActivity.appPlayer);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue