From d8cb8c5205418f7623ed8bd0b804b2b2ade6c092 Mon Sep 17 00:00:00 2001 From: Armands Malejevs Date: Thu, 22 Jun 2023 15:25:44 +0300 Subject: [PATCH] logs --- .../java/com/brentvatne/exoplayer/ReactExoplayerView.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java b/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java index 3ff846f864..7333915045 100644 --- a/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java +++ b/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java @@ -446,6 +446,7 @@ private void displayInteractiveAd(String vastUrl) { if (player == null) { return; } + Log.w("truex", "Displaying interactive ad!"); WritableMap payload = Arguments.createMap(); eventEmitter.adEvent("STARTED_TRUEX", payload); @@ -457,18 +458,21 @@ private void displayInteractiveAd(String vastUrl) { // Start the true[X] engagement ViewGroup viewGroup = (ViewGroup) truexOverlayFrameLayout; truexAdManager = new TruexAdManager(getContext(), this); - truexAdManager.startAd(viewGroup, vastUrl, disableTruexRateLimit); + truexAdManager.startAd(viewGroup, vastUrl, true); } public void handleCheckTruex(AdEvent event) { if (activeAd == null) { return; } + Log.w("truex", "Checking if ad is TrueX"); boolean isTrueXAd = activeAd.getAdSystem().contains("trueX"); if (isTrueXAd && isTruexEnabled) { + Log.w("truex", "Ad is TrueX"); String vastUrl = activeAd.getDescription(); displayInteractiveAd(vastUrl); } else if (isTrueXAd && !isTruexEnabled) { + Log.w("truex", "Ad is not TrueX"); // Don't display interactive ads if TrueX is disabled adsLoader.skipAd(); }