mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-23 17:22:16 -05:00
set to stripped by default, rather than "unavailable"
This commit is contained in:
parent
b2f32827c6
commit
c8f788b925
@ -69,9 +69,9 @@ public class CanonicalizedSecretKey extends CanonicalizedPublicKey {
|
||||
private PGPPrivateKey mPrivateKey = null;
|
||||
|
||||
private int mPrivateKeyState = PRIVATE_KEY_STATE_LOCKED;
|
||||
private static int PRIVATE_KEY_STATE_LOCKED = 0;
|
||||
private static int PRIVATE_KEY_STATE_UNLOCKED = 1;
|
||||
private static int PRIVATE_KEY_STATE_DIVERT_TO_CARD = 2;
|
||||
final private static int PRIVATE_KEY_STATE_LOCKED = 0;
|
||||
final private static int PRIVATE_KEY_STATE_UNLOCKED = 1;
|
||||
final private static int PRIVATE_KEY_STATE_DIVERT_TO_CARD = 2;
|
||||
|
||||
CanonicalizedSecretKey(CanonicalizedSecretKeyRing ring, PGPSecretKey key) {
|
||||
super(ring, key.getPublicKey());
|
||||
|
@ -782,7 +782,7 @@ public class ProviderHelper {
|
||||
|
||||
// first, mark all keys as not available
|
||||
ContentValues values = new ContentValues();
|
||||
values.put(Keys.HAS_SECRET, SecretKeyType.UNAVAILABLE.getNum());
|
||||
values.put(Keys.HAS_SECRET, SecretKeyType.GNU_DUMMY.getNum());
|
||||
mContentResolver.update(uri, values, null, null);
|
||||
|
||||
// then, mark exactly the keys we have available
|
||||
|
Loading…
Reference in New Issue
Block a user