Never delete the private key
This commit is contained in:
parent
6bcb7fc50e
commit
3d7c1a504e
@ -196,7 +196,9 @@ public class AndroidAddressRepository implements AddressRepository {
|
|||||||
} else {
|
} else {
|
||||||
values.put(COLUMN_PUBLIC_KEY, (byte[]) null);
|
values.put(COLUMN_PUBLIC_KEY, (byte[]) null);
|
||||||
}
|
}
|
||||||
values.put(COLUMN_PRIVATE_KEY, Encode.bytes(address.getPrivateKey()));
|
if (address.getPrivateKey() != null) {
|
||||||
|
values.put(COLUMN_PRIVATE_KEY, Encode.bytes(address.getPrivateKey()));
|
||||||
|
}
|
||||||
values.put(COLUMN_SUBSCRIBED, address.isSubscribed());
|
values.put(COLUMN_SUBSCRIBED, address.isSubscribed());
|
||||||
|
|
||||||
int update = db.update(TABLE_NAME, values, "address = '" + address.getAddress() +
|
int update = db.update(TABLE_NAME, values, "address = '" + address.getAddress() +
|
||||||
|
Loading…
Reference in New Issue
Block a user