diff options
author | Matthew Xie <mattx@google.com> | 2015-01-22 20:13:17 -0800 |
---|---|---|
committer | Matthew Xie <mattx@google.com> | 2015-01-22 20:54:54 -0800 |
commit | c525cf7a33430f44246f63d1c68c4cda4b92254e (patch) | |
tree | 3a6475bc8f020651074b099136e03f5ffe082793 /media | |
parent | b443610bcb9a1f0d8e64b55c7d6e53bc54d7ec43 (diff) | |
download | frameworks_base-c525cf7a33430f44246f63d1c68c4cda4b92254e.zip frameworks_base-c525cf7a33430f44246f63d1c68c4cda4b92254e.tar.gz frameworks_base-c525cf7a33430f44246f63d1c68c4cda4b92254e.tar.bz2 |
Delay the second message for 30ms more than the last message for a2dp
In function setBluetoothA2dpDeviceConnectionState, current code calculate
the delay of the second state update message to be exactly the same as the
last delayed messages. This causes a problem that the sequence of the
messages may be altered.
Bug: 19036411
Change-Id: I35762873fd3341ec098dd229ac96bd42d6f34195
Diffstat (limited to 'media')
-rw-r--r-- | media/java/android/media/AudioService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/java/android/media/AudioService.java b/media/java/android/media/AudioService.java index 532314d..38a5b40 100644 --- a/media/java/android/media/AudioService.java +++ b/media/java/android/media/AudioService.java @@ -4714,7 +4714,7 @@ public class AudioService extends IAudioService.Stub { synchronized (mLastDeviceConnectMsgTime) { long time = SystemClock.uptimeMillis(); if (mLastDeviceConnectMsgTime > time) { - delay = (int)(mLastDeviceConnectMsgTime - time); + delay = (int)(mLastDeviceConnectMsgTime - time) + 30; } } } |