Fixed server sorting to use friendly name instead of display string.

This commit is contained in:
Felix Ableitner 2014-05-11 22:01:45 +02:00
parent 8186a48d1e
commit de8cc9e435

View file

@ -126,7 +126,8 @@ public class DeviceArrayAdapter extends ArrayAdapter<Device<?, ?, ?>>
@Override @Override
public int compare(Device<?, ?, ?> lhs, public int compare(Device<?, ?, ?> lhs,
Device<?, ?, ?> rhs) { Device<?, ?, ?> rhs) {
return lhs.getDisplayString().compareTo(rhs.getDisplayString()); return lhs.getDetails().getFriendlyName()
.compareTo(rhs.getDetails().getFriendlyName());
} }
}); });
} }