[ADS] Add adOverlayFrameLayout in layout instead of view

This commit is contained in:
Axel Vencatareddy 2022-11-16 20:16:37 +01:00
parent 0a30f207df
commit 8ee6ad9900

View File

@ -83,13 +83,13 @@ public final class ExoPlayerView extends FrameLayout implements AdViewProvider {
updateSurfaceView();
layout.addView(shutterView, 1, layoutParams);
layout.addView(subtitleLayout, 2, layoutParams);
adOverlayFrameLayout = new FrameLayout(context);
layout.addView(shutterView, 1, layoutParams);
layout.addView(subtitleLayout, 2, layoutParams);
layout.addView(adOverlayFrameLayout, 3, layoutParams);
addViewInLayout(layout, 0, aspectRatioParams);
addViewInLayout(adOverlayFrameLayout, 1, layoutParams);
}
private void clearVideoView() {