set to stripped by default, rather than "unavailable"
This commit is contained in:
@@ -69,9 +69,9 @@ public class CanonicalizedSecretKey extends CanonicalizedPublicKey {
|
|||||||
private PGPPrivateKey mPrivateKey = null;
|
private PGPPrivateKey mPrivateKey = null;
|
||||||
|
|
||||||
private int mPrivateKeyState = PRIVATE_KEY_STATE_LOCKED;
|
private int mPrivateKeyState = PRIVATE_KEY_STATE_LOCKED;
|
||||||
private static int PRIVATE_KEY_STATE_LOCKED = 0;
|
final private static int PRIVATE_KEY_STATE_LOCKED = 0;
|
||||||
private static int PRIVATE_KEY_STATE_UNLOCKED = 1;
|
final 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_DIVERT_TO_CARD = 2;
|
||||||
|
|
||||||
CanonicalizedSecretKey(CanonicalizedSecretKeyRing ring, PGPSecretKey key) {
|
CanonicalizedSecretKey(CanonicalizedSecretKeyRing ring, PGPSecretKey key) {
|
||||||
super(ring, key.getPublicKey());
|
super(ring, key.getPublicKey());
|
||||||
|
|||||||
@@ -782,7 +782,7 @@ public class ProviderHelper {
|
|||||||
|
|
||||||
// first, mark all keys as not available
|
// first, mark all keys as not available
|
||||||
ContentValues values = new ContentValues();
|
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);
|
mContentResolver.update(uri, values, null, null);
|
||||||
|
|
||||||
// then, mark exactly the keys we have available
|
// then, mark exactly the keys we have available
|
||||||
|
|||||||
Reference in New Issue
Block a user