// update the state if needed.
if (device.getState() != newDevice.getState()) {
device.setState(newDevice.getState());
- device.update(Device.CHANGE_STATE);
+
//should to check architecture if device is an emulator and state changed from "off-lined" to "on-lined"
if(device.isEmulator() && device.getState() == DeviceState.ONLINE)
{
device.checkArchitecture();
}
+ device.update(Device.CHANGE_STATE);
}
// remove the new device from the list since it's been used
newList.remove(dd);
}
// add them to the list
mDevices.add(newDevice);
- mServer.deviceConnected(newDevice);
// look for their build info.
if (newDevice.isOnline()) {
devicesToQuery.add(newDevice);
+ mServer.deviceConnected(newDevice);
}
}
}