package com.nutomic.syncthingandroid.model;

import android.text.TextUtils;

import java.util.List;

public class Device {
    public String deviceID;
    public String name;
    public List<String> addresses;
    public String compression;
    public String certName;
    public boolean introducer;
    public boolean paused;

    /**
     * Returns the device name, or the first characters of the ID if the name is empty.
     */
    public String getDisplayName() {
        return (TextUtils.isEmpty(name))
                ? deviceID.substring(0, 7)
                : name;
    }
}

@@ -162,24 +162,29 @@
  String name
+ = %22%22
 ;%0A    public

Fix DeviceListFragment NPE on Comparator (#20)