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
de3a749b
authored
Jan 21, 2019
by
olly
Committed by
Oliver Woodman
Jan 29, 2019
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fix scheduler NPE in DownloadService
PiperOrigin-RevId: 230260266
parent
29711b92
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
demos/main/src/main/java/com/google/android/exoplayer2/demo/DemoDownloadService.java
library/core/src/main/java/com/google/android/exoplayer2/offline/DownloadService.java
demos/main/src/main/java/com/google/android/exoplayer2/demo/DemoDownloadService.java
View file @
de3a749b
...
...
@@ -65,7 +65,7 @@ public class DemoDownloadService extends DownloadService {
@Override
protected
void
onDownloadStateChanged
(
DownloadState
downloadState
)
{
Notification
notification
=
null
;
Notification
notification
;
if
(
downloadState
.
state
==
DownloadState
.
STATE_COMPLETED
)
{
notification
=
DownloadNotificationUtil
.
buildDownloadCompletedNotification
(
...
...
library/core/src/main/java/com/google/android/exoplayer2/offline/DownloadService.java
View file @
de3a749b
...
...
@@ -462,7 +462,7 @@ public abstract class DownloadService extends Service {
public
void
detachService
(
DownloadService
downloadService
,
boolean
unschedule
)
{
Assertions
.
checkState
(
this
.
downloadService
==
downloadService
);
this
.
downloadService
=
null
;
if
(
unschedule
)
{
if
(
scheduler
!=
null
&&
unschedule
)
{
scheduler
.
cancel
();
}
}
...
...
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