aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/thialfihar/android/apg/PreferencesActivity.java
diff options
context:
space:
mode:
authorThialfihar <thialfihar@gmail.com>2010-05-16 13:17:45 +0000
committerThialfihar <thialfihar@gmail.com>2010-05-16 13:17:45 +0000
commit9855f4d1441ac1e5dc7df19ebd0272e5f94e2aa2 (patch)
tree5bf2a68bc44d433ca62521971d3569bf39f397ad /src/org/thialfihar/android/apg/PreferencesActivity.java
parentf94af3e4e66c4b0cd184931ec5aa6503764bfb38 (diff)
downloadopen-keychain-9855f4d1441ac1e5dc7df19ebd0272e5f94e2aa2.tar.gz
open-keychain-9855f4d1441ac1e5dc7df19ebd0272e5f94e2aa2.tar.bz2
open-keychain-9855f4d1441ac1e5dc7df19ebd0272e5f94e2aa2.zip
honour the pass phrase cache TTL by running a timer and removing expired cached pass phrases
Diffstat (limited to 'src/org/thialfihar/android/apg/PreferencesActivity.java')
-rw-r--r--src/org/thialfihar/android/apg/PreferencesActivity.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/thialfihar/android/apg/PreferencesActivity.java b/src/org/thialfihar/android/apg/PreferencesActivity.java
index 8a1c02475..f6bc4c8b4 100644
--- a/src/org/thialfihar/android/apg/PreferencesActivity.java
+++ b/src/org/thialfihar/android/apg/PreferencesActivity.java
@@ -55,7 +55,7 @@ public class PreferencesActivity extends BaseActivity {
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
mPassPhraseCache.setAdapter(adapter);
- int passPhraseCache = getPassPhraseCache();
+ int passPhraseCache = getPassPhraseCacheTtl();
for (int i = 0; i < choices.length; ++i) {
if (choices[i].getId() == passPhraseCache) {
mPassPhraseCache.setSelection(i);
@@ -66,7 +66,7 @@ public class PreferencesActivity extends BaseActivity {
mPassPhraseCache.setOnItemSelectedListener(new OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> adapter, View view, int index, long id) {
- setPassPhraseCache(((Choice) mPassPhraseCache.getSelectedItem()).getId());
+ setPassPhraseCacheTtl(((Choice) mPassPhraseCache.getSelectedItem()).getId());
}
@Override