fix(android): ensure adTagUrl can be reset (#3408)
Co-authored-by: olivier <olivier.bouillet@ifeelsmart.com>
This commit is contained in:
parent
fbb5654a8e
commit
f9bcaac515
@ -198,6 +198,7 @@ public class ReactExoplayerViewManager extends ViewGroupManager<ReactExoplayerVi
|
|||||||
@ReactProp(name = PROP_AD_TAG_URL)
|
@ReactProp(name = PROP_AD_TAG_URL)
|
||||||
public void setAdTagUrl(final ReactExoplayerView videoView, final String uriString) {
|
public void setAdTagUrl(final ReactExoplayerView videoView, final String uriString) {
|
||||||
if (TextUtils.isEmpty(uriString)) {
|
if (TextUtils.isEmpty(uriString)) {
|
||||||
|
videoView.setAdTagUrl(null);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user