mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 794791 - [b2g-bluetooth] Update Device/Adapter properties table; r=qdot
This commit is contained in:
parent
242ed9b604
commit
218d22deb5
@ -120,15 +120,7 @@ BluetoothDevice::SetPropertyByValue(const BluetoothNamedValue& aValue)
|
||||
} else if (name.EqualsLiteral("Icon")) {
|
||||
mIcon = value.get_nsString();
|
||||
} else if (name.EqualsLiteral("Connected")) {
|
||||
#ifdef MOZ_WIDGET_GONK
|
||||
// Connected is an 2-byte array
|
||||
// arr[0]: boolean value, true means connected, false means disconnected
|
||||
// arr[1]: disconnection reason
|
||||
InfallibleTArray<uint8_t> arr = value.get_ArrayOfuint8_t();
|
||||
mConnected = (arr[0] == 1);
|
||||
#else
|
||||
mConnected = value.get_bool();
|
||||
#endif
|
||||
} else if (name.EqualsLiteral("Paired")) {
|
||||
mPaired = value.get_bool();
|
||||
} else if (name.EqualsLiteral("UUIDs")) {
|
||||
|
@ -81,11 +81,7 @@ static Properties sDeviceProperties[] = {
|
||||
{"Class", DBUS_TYPE_UINT32},
|
||||
{"UUIDs", DBUS_TYPE_ARRAY},
|
||||
{"Paired", DBUS_TYPE_BOOLEAN},
|
||||
#ifdef MOZ_WIDGET_GONK
|
||||
{"Connected", DBUS_TYPE_ARRAY},
|
||||
#else
|
||||
{"Connected", DBUS_TYPE_BOOLEAN},
|
||||
#endif
|
||||
{"Trusted", DBUS_TYPE_BOOLEAN},
|
||||
{"Blocked", DBUS_TYPE_BOOLEAN},
|
||||
{"Alias", DBUS_TYPE_STRING},
|
||||
|
Loading…
Reference in New Issue
Block a user