diff --git a/src/org/kde/kdeconnect/Device.java b/src/org/kde/kdeconnect/Device.java index da9c2ade..0ae05811 100644 --- a/src/org/kde/kdeconnect/Device.java +++ b/src/org/kde/kdeconnect/Device.java @@ -49,6 +49,7 @@ import java.security.spec.PKCS8EncodedKeySpec; import java.security.spec.X509EncodedKeySpec; import java.util.ArrayList; import java.util.HashMap; +import java.util.HashSet; import java.util.Set; import java.util.Timer; import java.util.TimerTask; @@ -77,14 +78,14 @@ public class Device implements BaseLink.PackageReceiver { public static DeviceType FromString(String s) { if ("tablet".equals(s)) return Tablet; - if ("desktop".equals(s)) return Computer; - return Phone; //Default + if ("phone".equals(s)) return Phone; + return Computer; //Default } public String toString() { switch (this) { case Tablet: return "tablet"; - case Computer: return "desktop"; - default: return "phone"; + case Phone: return "phone"; + default: return "desktop"; } } }