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
4712bcfd
authored
Sep 02, 2019
by
bachinger
Committed by
Oliver Woodman
Sep 16, 2019
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
use isPlaying to determine which notification action to display in compact view
PiperOrigin-RevId: 266782250
parent
284a672b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
RELEASENOTES.md
library/ui/src/main/java/com/google/android/exoplayer2/ui/PlayerNotificationManager.java
RELEASENOTES.md
View file @
4712bcfd
...
...
@@ -11,6 +11,8 @@
quality video can be loaded up to the full default buffer duration.
*
Bypass sniffing in
`ProgressiveMediaPeriod`
in case a single extractor is
provided (
[
#6325
](
https://github.com/google/ExoPlayer/issues/6325
)
).
*
Fix
`PlayerNotificationManager`
to show play icon rather than pause icon when
playback is ended (
[
#6324
](
https://github.com/google/ExoPlayer/issues/6324
)
).
*
Fix audio selection issue where languages are compared by bit rate
(
[
#6335
](
https://github.com/google/ExoPlayer/issues/6335
)
).
*
Add
`HttpDataSource.getResponseCode`
to provide the status code associated
...
...
library/ui/src/main/java/com/google/android/exoplayer2/ui/PlayerNotificationManager.java
View file @
4712bcfd
...
...
@@ -1182,10 +1182,10 @@ public class PlayerNotificationManager {
if
(
skipPreviousActionIndex
!=
-
1
)
{
actionIndices
[
actionCounter
++]
=
skipPreviousActionIndex
;
}
boolean
playWhenReady
=
player
.
getPlayWhenReady
(
);
if
(
pauseActionIndex
!=
-
1
&&
playWhenReady
)
{
boolean
isPlaying
=
isPlaying
(
player
);
if
(
pauseActionIndex
!=
-
1
&&
isPlaying
)
{
actionIndices
[
actionCounter
++]
=
pauseActionIndex
;
}
else
if
(
playActionIndex
!=
-
1
&&
!
playWhenReady
)
{
}
else
if
(
playActionIndex
!=
-
1
&&
!
isPlaying
)
{
actionIndices
[
actionCounter
++]
=
playActionIndex
;
}
if
(
skipNextActionIndex
!=
-
1
)
{
...
...
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