[ANDROID ADS] Always setAdTagUrl even if it's null

This commit is contained in:
Axel Vencatareddy 2022-11-30 12:39:43 +01:00
parent 73dde32cce
commit 567c299b2a

View File

@ -196,15 +196,10 @@ public class ReactExoplayerViewManager extends ViewGroupManager<ReactExoplayerVi
return; return;
} }
if (startsWithValidScheme(uriString)) {
Uri adTagUrl = Uri.parse(uriString); Uri adTagUrl = Uri.parse(uriString);
if (adTagUrl != null) {
videoView.setAdTagUrl(adTagUrl); videoView.setAdTagUrl(adTagUrl);
} }
}
return;
}
@ReactProp(name = PROP_RESIZE_MODE) @ReactProp(name = PROP_RESIZE_MODE)