2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-29 13:17:43 +00:00

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
This commit is contained in:
Vineet Garg 2015-03-04 18:31:25 -08:00 committed by Albert Vaca
parent 1e34a42b8f
commit ea514c0a19

View File

@ -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();
}