Additional formatting cleanup

This commit is contained in:
Craig Martin 2023-08-22 23:35:51 -04:00
parent d5551c9f80
commit 140cfe0a9c
2 changed files with 7 additions and 14 deletions

View File

@ -397,8 +397,7 @@ class ReactExoplayerView extends FrameLayout implements
* Toggling the visibility of the player control view
*/
private void togglePlayerControlVisibility() {
if(player == null)
return;
if(player == null) return;
reLayout(playerControlView);
if (playerControlView.isVisible()) {
playerControlView.hide();
@ -495,8 +494,7 @@ class ReactExoplayerView extends FrameLayout implements
* Adding Player control to the frame layout
*/
private void addPlayerControl() {
if(playerControlView == null)
return;
if(playerControlView == null) return;
LayoutParams layoutParams = new LayoutParams(
LayoutParams.MATCH_PARENT,
LayoutParams.MATCH_PARENT);
@ -600,7 +598,6 @@ class ReactExoplayerView extends FrameLayout implements
Log.e("ExoPlayer Exception", "Failed to initialize DRM Session Manager Framework!");
eventEmitter.error("Failed to initialize DRM Session Manager Framework!", new Exception("DRM Session Manager Framework failure!"), "3003");
return;
}
if (activity == null) {
@ -774,7 +771,6 @@ class ReactExoplayerView extends FrameLayout implements
if (Util.SDK_INT < 18) {
return null;
}
try {
HttpMediaDrmCallback drmCallback = new HttpMediaDrmCallback(licenseUrl,
buildHttpDataSourceFactory(false));
@ -1089,7 +1085,6 @@ class ReactExoplayerView extends FrameLayout implements
}
// AudioBecomingNoisyListener implementation
@Override
@ -1223,7 +1218,6 @@ class ReactExoplayerView extends FrameLayout implements
&& selection.indexOf( trackIndex ) != C.INDEX_UNSET;
}
private ArrayList<Track> getAudioTrackInfo() {
ArrayList<Track> audioTracks = new ArrayList<>();
if (trackSelector == null) {
@ -1532,7 +1526,6 @@ class ReactExoplayerView extends FrameLayout implements
boolean isSourceEqual = uri.equals(srcUri) && startTimeMs == this.startTimeMs && endTimeMs == this.endTimeMs;
hasDrmFailed = false;
this.srcUri = uri;
this.startTimeMs = startTimeMs;
this.endTimeMs = endTimeMs;
this.extension = extension;