Never delete the private key

This commit is contained in:
Christian Basler 2016-01-31 23:13:35 +01:00
parent 6bcb7fc50e
commit 3d7c1a504e

View File

@ -196,7 +196,9 @@ public class AndroidAddressRepository implements AddressRepository {
} else {
values.put(COLUMN_PUBLIC_KEY, (byte[]) null);
}
if (address.getPrivateKey() != null) {
values.put(COLUMN_PRIVATE_KEY, Encode.bytes(address.getPrivateKey()));
}
values.put(COLUMN_SUBSCRIBED, address.isSubscribed());
int update = db.update(TABLE_NAME, values, "address = '" + address.getAddress() +