summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Burk <philburk@google.com>2015-03-19 15:32:24 -0700
committerPhil Burk <philburk@google.com>2015-03-19 17:01:16 -0700
commit1a7700793db3c7b60d5e090ee026a1bcfeff91d8 (patch)
treec515bd79b14e2fd56e9c8d1aa329d83f23edf760
parent3a96f767c3a368969a58e319ad36df5cb39b15f2 (diff)
downloadframeworks_base-1a7700793db3c7b60d5e090ee026a1bcfeff91d8.zip
frameworks_base-1a7700793db3c7b60d5e090ee026a1bcfeff91d8.tar.gz
frameworks_base-1a7700793db3c7b60d5e090ee026a1bcfeff91d8.tar.bz2
AudioService: fix String cast crash when mediaserver killed
Bug: 19847028 Change-Id: I45668fbd08e87df69fe3867473a09c387589ca8a Signed-off-by: Phil Burk <philburk@google.com>
-rw-r--r--services/core/java/com/android/server/audio/AudioService.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/audio/AudioService.java b/services/core/java/com/android/server/audio/AudioService.java
index 5296ff1..65b2ae2 100644
--- a/services/core/java/com/android/server/audio/AudioService.java
+++ b/services/core/java/com/android/server/audio/AudioService.java
@@ -4115,8 +4115,8 @@ public class AudioService extends IAudioService.Stub {
AudioSystem.setDeviceConnectionState(
spec.mDeviceType,
AudioSystem.DEVICE_STATE_AVAILABLE,
- (String)device.getValue(),
- "unknown-device");
+ spec.mDeviceAddress,
+ spec.mDeviceName);
}
}
// Restore call state