Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AdvancedExample/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ android {

defaultConfig {
applicationId = "com.google.ads.interactivemedia.v3.samples.videoplayerapp"
minSdkVersion(23)
minSdkVersion(24)
targetSdkVersion(36)
versionCode = 1
versionName = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion ExoPlayerExample/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ android {

defaultConfig {
applicationId = "com.google.ads.interactivemedia.v3.samples.exoplayerexample"
minSdkVersion(23)
minSdkVersion(24)
targetSdkVersion(36)
versionCode = 1
versionName = "1.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.google.ads.interactivemedia.v3.samples.exoplayerexample;

// [START imports]
import static android.os.Build.VERSION.SDK_INT;

import android.annotation.SuppressLint;
import android.app.Activity;
Expand Down Expand Up @@ -93,18 +92,16 @@ public AdEvent.AdEventListener buildAdEventListener() {
@Override
public void onStart() {
super.onStart();
if (SDK_INT > 23) {
initializePlayer();
if (playerView != null) {
playerView.onResume();
}
initializePlayer();
if (playerView != null) {
playerView.onResume();
}
}

@Override
public void onResume() {
super.onResume();
if (SDK_INT <= 23 || player == null) {
if (player == null) {
initializePlayer();
if (playerView != null) {
playerView.onResume();
Expand All @@ -115,23 +112,15 @@ public void onResume() {
@Override
public void onPause() {
super.onPause();
if (SDK_INT <= 23) {
if (playerView != null) {
playerView.onPause();
}
releasePlayer();
}
}

@Override
public void onStop() {
super.onStop();
if (SDK_INT > 23) {
if (playerView != null) {
playerView.onPause();
}
releasePlayer();
if (playerView != null) {
playerView.onPause();
}
releasePlayer();
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion Snippets/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ android {

defaultConfig {
applicationId = "com.example.snippets"
minSdk = 23
minSdk = 24
targetSdk = 36
versionCode = 1
versionName = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion basicexample/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ android {

defaultConfig {
applicationId = "com.google.ads.interactivemedia.v3.samples.videoplayerapp"
minSdkVersion(23)
minSdkVersion(24)
targetSdkVersion(36)
versionCode = 1
versionName = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion umpexample/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ android {

defaultConfig {
applicationId = "com.google.ads.interactivemedia.v3.samples.umpimaapp"
minSdkVersion(23)
minSdkVersion(24)
targetSdkVersion(36)
versionCode = 1
versionName = "1.0"
Expand Down
Loading