Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
packages_apps_Bluetooth
Commits
7a306fb7
Commit
7a306fb7
authored
10 years ago
by
Matthew Xie
Committed by
Android (Google) Code Review
10 years ago
Browse files
Options
Download
Plain Diff
Merge "Update AVRCP play status only if music is streaming" into lmp-dev
parents
a40ac96c
22bad704
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/com/android/bluetooth/avrcp/Avrcp.java
src/com/android/bluetooth/avrcp/Avrcp.java
+3
-0
No files found.
src/com/android/bluetooth/avrcp/Avrcp.java
View file @
7a306fb7
...
...
@@ -471,6 +471,9 @@ public final class Avrcp {
private
void
updateA2dpAudioState
(
int
state
)
{
boolean
isPlaying
=
(
state
==
BluetoothA2dp
.
STATE_PLAYING
);
if
(
isPlaying
!=
isPlayingState
(
mCurrentPlayState
))
{
/* if a2dp is streaming, check to make sure music is active */
if
(
(
isPlaying
)
&&
!
mAudioManager
.
isMusicActive
())
return
;
updatePlayPauseState
(
isPlaying
?
RemoteControlClient
.
PLAYSTATE_PLAYING
:
RemoteControlClient
.
PLAYSTATE_PAUSED
,
RemoteControlClient
.
PLAYBACK_POSITION_INVALID
);
...
...
This diff is collapsed.
Click to expand it.
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