From ea514c0a19b762e7ea98a1011236405b22a02e95 Mon Sep 17 00:00:00 2001 From: Vineet Garg Date: Wed, 4 Mar 2015 18:31:25 -0800 Subject: [PATCH] Previous commit was blocking links.add(link) for unpaired devices Public key was set to null for unpaired devices and its Base64 encoding was causing an exception. REVIEW: 122806 --- src/org/kde/kdeconnect/Device.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/org/kde/kdeconnect/Device.java b/src/org/kde/kdeconnect/Device.java index 547301ca..dec20b61 100644 --- a/src/org/kde/kdeconnect/Device.java +++ b/src/org/kde/kdeconnect/Device.java @@ -328,8 +328,6 @@ public class Device implements BaseLink.PackageReceiver { this.name = identityPackage.getString("deviceName", this.name); SharedPreferences.Editor editor = settings.edit(); editor.putString("deviceName", this.name); - String encodedPublicKey = Base64.encodeToString(publicKey.getEncoded(), 0); - editor.putString("publicKey", encodedPublicKey); editor.apply(); }