Skip to content

Commit

Permalink
Fix/doris 2481 info popup window always shown (#364)
Browse files Browse the repository at this point in the history
* fix: info window always shown

* chore: bump version
  • Loading branch information
WeiLiuSH authored Sep 18, 2024
1 parent f36cdd0 commit c212706
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,17 @@ public void onHostPause() {
onStopPlayback();
isInBackground = isInteractive();
deactivateMediaSession();
dismissPopupWindow();
}

private void dismissPopupWindow() {
if (exoDorisPlayerView != null) {
View controller = exoDorisPlayerView.findViewById(R.id.exo_controller);
if (controller instanceof ExoDorisPlayerTvControlView) {
((ExoDorisPlayerTvControlView) controller).dismissInfoPopupWindow();
((ExoDorisPlayerTvControlView) controller).dismissTracksPopupWindow();
}
}
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-video",
"version": "7.5.14",
"version": "7.5.15",
"dorisAndroidVersion": "3.9.44",
"description": "A <Video /> element for react-native",
"main": "Video.tsx",
Expand Down

0 comments on commit c212706

Please sign in to comment.