Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c5144dc7
authored
Jun 12, 2020
by
andrewlewis
Committed by
Oliver Woodman
Jun 12, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fix catch type in ImaAdsLoader defensive checks
PiperOrigin-RevId: 316079131
parent
28a7e59d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
extensions/ima/src/main/java/com/google/android/exoplayer2/ext/ima/ImaAdsLoader.java
extensions/ima/src/main/java/com/google/android/exoplayer2/ext/ima/ImaAdsLoader.java
View file @
c5144dc7
...
...
@@ -715,7 +715,7 @@ public final class ImaAdsLoader
}
try
{
handleAdPrepareError
(
adGroupIndex
,
adIndexInAdGroup
,
exception
);
}
catch
(
Exception
e
)
{
}
catch
(
Runtime
Exception
e
)
{
maybeNotifyInternalError
(
"handlePrepareError"
,
e
);
}
}
...
...
@@ -742,7 +742,7 @@ public final class ImaAdsLoader
adPlaybackState
=
new
AdPlaybackState
(
getAdGroupTimesUs
(
adsManager
.
getAdCuePoints
()));
hasAdPlaybackState
=
true
;
updateAdPlaybackState
();
}
catch
(
Exception
e
)
{
}
catch
(
Runtime
Exception
e
)
{
maybeNotifyInternalError
(
"onAdsManagerLoaded"
,
e
);
}
}
...
...
@@ -762,7 +762,7 @@ public final class ImaAdsLoader
}
try
{
handleAdEvent
(
adEvent
);
}
catch
(
Exception
e
)
{
}
catch
(
Runtime
Exception
e
)
{
maybeNotifyInternalError
(
"onAdEvent"
,
e
);
}
}
...
...
@@ -784,7 +784,7 @@ public final class ImaAdsLoader
}
else
if
(
isAdGroupLoadError
(
error
))
{
try
{
handleAdGroupLoadError
(
error
);
}
catch
(
Exception
e
)
{
}
catch
(
Runtime
Exception
e
)
{
maybeNotifyInternalError
(
"onAdError"
,
e
);
}
}
...
...
@@ -885,7 +885,7 @@ public final class ImaAdsLoader
adPlaybackState
=
adPlaybackState
.
withAdUri
(
adInfo
.
adGroupIndex
,
adInfo
.
adIndexInAdGroup
,
adUri
);
updateAdPlaybackState
();
}
catch
(
Exception
e
)
{
}
catch
(
Runtime
Exception
e
)
{
maybeNotifyInternalError
(
"loadAd"
,
e
);
}
}
...
...
@@ -959,7 +959,7 @@ public final class ImaAdsLoader
Assertions
.
checkState
(
imaAdState
!=
IMA_AD_STATE_NONE
);
try
{
stopAdInternal
();
}
catch
(
Exception
e
)
{
}
catch
(
Runtime
Exception
e
)
{
maybeNotifyInternalError
(
"stopAd"
,
e
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment