Skip to content

Commit e7bb058

Browse files
committed
[[ Bug 22761 ]] Fix Android mobile player controller visibility
This patch ensures that the mobile player controller is not visible when the mobile player is invisible. This fixes an issue where setting the showController property to true would show the controller regardless of the visibility of the player.
1 parent 6f46893 commit e7bb058

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

docs/notes/bugfix-22671.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Ensure Android mobile player controller is not visible when the control is not visible

engine/src/java/com/runrev/android/nativecontrol/VideoControl.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,10 @@ public boolean setFile(String path, boolean isAsset)
159159
public void setShowController(boolean show)
160160
{
161161
if (show)
162+
{
162163
m_video_view.setMediaController(m_video_controller);
164+
m_video_view.setControllerVisible(getVisible());
165+
}
163166
else
164167
m_video_view.setMediaController(null);
165168
}

0 commit comments

Comments
 (0)