diff --git a/plugins/dde-dock/bluetooth/componments/device.cpp b/plugins/dde-dock/bluetooth/componments/device.cpp index 520b18b2e..4496282c2 100644 --- a/plugins/dde-dock/bluetooth/componments/device.cpp +++ b/plugins/dde-dock/bluetooth/componments/device.cpp @@ -19,6 +19,7 @@ QMap Device::deviceType2Icon = { {"input-gaming", "other"}, {"input-tablet", "touchpad"}, {"audio-card", "pheadset"}, + {"audio-avrcp-target", "pheadset"}, {"network-wireless", "lan"}, {"camera-video", "vidicon"}, {"printer", "print"}, @@ -103,7 +104,7 @@ void Device::setRssi(int rssi) void Device::setDeviceType(const QString &deviceType) { - m_deviceType = deviceType2Icon[deviceType]; + m_deviceType = deviceType2Icon.value(deviceType, "other"); } QDebug &operator<<(QDebug &stream, const Device *device)