delete correct cache entries (important for yubikey pins!)

This commit is contained in:
Vincent Breitmoser 2015-05-30 02:47:14 +02:00
parent 61a6346f89
commit bde58c6ff1

View File

@ -411,9 +411,9 @@ public class PassphraseCacheService extends Service {
long referenceKeyId;
if (Preferences.getPreferences(mContext).getPassphraseCacheSubs()) {
referenceKeyId = intent.getLongExtra(EXTRA_KEY_ID, 0L);
} else {
referenceKeyId = intent.getLongExtra(EXTRA_SUBKEY_ID, 0L);
} else {
referenceKeyId = intent.getLongExtra(EXTRA_KEY_ID, 0L);
}
// Stop specific ttl alarm and
am.cancel(buildIntent(this, referenceKeyId));