Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
armands-malejevs committed May 30, 2023
1 parent e8a7c50 commit 3895f64
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions android/src/main/java/com/brentvatne/exoplayer/ExoPlayerView.java
Expand Up @@ -131,7 +131,6 @@ public void setAdOverlay(FrameLayout adOverlay) {
}

private void clearVideoView() {
Log.w("RNV", "clearVideoView()");
if (surfaceView instanceof TextureView) {
player.clearVideoTextureView((TextureView) surfaceView);
} else if (surfaceView instanceof SurfaceView) {
Expand All @@ -140,7 +139,6 @@ private void clearVideoView() {
}

private void setVideoView() {
Log.w("RNV", "setVideoView()");
if (surfaceView instanceof TextureView) {
player.setVideoTextureView((TextureView) surfaceView);
} else if (surfaceView instanceof SurfaceView) {
Expand All @@ -150,27 +148,19 @@ private void setVideoView() {

private void updateSurfaceView() {
View view;
Log.w("RNV", "DEBUG1");
if (!useTextureView || useSecureView) {
Log.w("RNV", "DEBUG2");
if (surfaceView != null && surfaceView instanceof SurfaceView) {
Log.w("RNV", "DEBUG3");
view = surfaceView;
} else {
Log.w("RNV", "DEBUG4");
view = new SurfaceView(context);
}
if (useSecureView) {
Log.w("RNV", "DEBUG5");
((SurfaceView)view).setSecure(true);
}
} else {
Log.w("RNV", "DEBUG6");
if (surfaceView != null && surfaceView instanceof TextureView) {
Log.w("RNV", "DEBUG7");
view = surfaceView;
} else {
Log.w("RNV", "DEBUG8");
view = new TextureView(context);
}
}
Expand All @@ -183,7 +173,6 @@ private void updateSurfaceView() {
layout.addView(surfaceView, 0, layoutParams);

if (this.player != null) {
Log.w("RNV", "DEBUG9");
setVideoView();
}
}
Expand Down

0 comments on commit 3895f64

Please sign in to comment.