From 93f591be3e355d23e2c3e116bb5bee4cddcd096c Mon Sep 17 00:00:00 2001 From: andrewlewis Date: Thu, 9 Aug 2018 08:59:17 -0700 Subject: [PATCH] Release ads loader on new intent in the demo app ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=208056265 --- .../java/com/google/android/exoplayer2/demo/PlayerActivity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/demos/main/src/main/java/com/google/android/exoplayer2/demo/PlayerActivity.java b/demos/main/src/main/java/com/google/android/exoplayer2/demo/PlayerActivity.java index 5d7023d687..64eea24cac 100644 --- a/demos/main/src/main/java/com/google/android/exoplayer2/demo/PlayerActivity.java +++ b/demos/main/src/main/java/com/google/android/exoplayer2/demo/PlayerActivity.java @@ -207,6 +207,7 @@ public class PlayerActivity extends Activity @Override public void onNewIntent(Intent intent) { releasePlayer(); + releaseAdsLoader(); clearStartPosition(); setIntent(intent); }