diff --git a/src/com/github/nutomic/controldlna/DeviceArrayAdapter.java b/src/com/github/nutomic/controldlna/DeviceArrayAdapter.java index 099eb24..f281914 100644 --- a/src/com/github/nutomic/controldlna/DeviceArrayAdapter.java +++ b/src/com/github/nutomic/controldlna/DeviceArrayAdapter.java @@ -127,8 +127,15 @@ public class DeviceArrayAdapter extends ArrayAdapter> @Override public void remoteDeviceUpdated(Registry registry, RemoteDevice device) { - deviceRemoved(device); - deviceAdded(device); + if (!device.getType().getType().equals(mDeviceType)) + deviceRemoved(device); + mActivity.runOnUiThread(new Runnable() { + + @Override + public void run() { + notifyDataSetChanged(); + } + }); } private void deviceAdded(final Device device) {