Fix Android audio crash

Why:

* There is a case where groupIndex may be unset

This change addresses the need by:

* Don't chain check for INDEX_UNSET to previous conditional
This commit is contained in:
Jacob
2019-03-19 13:46:01 -04:00
parent c36a9cf2ef
commit 2072793ae3

View File

@@ -984,7 +984,9 @@ class ReactExoplayerView extends FrameLayout implements
tracks[j] = j;
}
}
} else if (groupIndex == C.INDEX_UNSET) {
}
if (groupIndex == C.INDEX_UNSET) {
trackSelector.setParameters(disableParameters);
return;
}