From c2cc91736852ea8b128e63bee71979d64b805c91 Mon Sep 17 00:00:00 2001 From: YangJH Date: Tue, 28 May 2024 16:29:40 +0900 Subject: [PATCH] feat(android): Change subtitleLayout from child to sibling of layout (#3830) --- .../src/main/java/com/brentvatne/exoplayer/ExoPlayerView.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/src/main/java/com/brentvatne/exoplayer/ExoPlayerView.java b/android/src/main/java/com/brentvatne/exoplayer/ExoPlayerView.java index d92d2769..e254975f 100644 --- a/android/src/main/java/com/brentvatne/exoplayer/ExoPlayerView.java +++ b/android/src/main/java/com/brentvatne/exoplayer/ExoPlayerView.java @@ -86,10 +86,10 @@ public final class ExoPlayerView extends FrameLayout implements AdViewProvider { adOverlayFrameLayout = new FrameLayout(context); layout.addView(shutterView, 1, layoutParams); - layout.addView(subtitleLayout, 2, layoutParams); - layout.addView(adOverlayFrameLayout, 3, layoutParams); + layout.addView(adOverlayFrameLayout, 2, layoutParams); addViewInLayout(layout, 0, aspectRatioParams); + addViewInLayout(subtitleLayout, 1, layoutParams); } private void clearVideoView() {