Release ads loader on new intent in the demo app

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=208056265
This commit is contained in:
andrewlewis 2018-08-09 08:59:17 -07:00 committed by Oliver Woodman
parent 5a8af74b4b
commit 93f591be3e

View File

@ -207,6 +207,7 @@ public class PlayerActivity extends Activity
@Override @Override
public void onNewIntent(Intent intent) { public void onNewIntent(Intent intent) {
releasePlayer(); releasePlayer();
releaseAdsLoader();
clearStartPosition(); clearStartPosition();
setIntent(intent); setIntent(intent);
} }