summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMohamed Zenadi <mohamed@zenadi.com>2015-06-17 21:30:37 +0200
committerMohamed Zenadi <mohamed@zenadi.com>2015-06-17 21:30:37 +0200
commitbb8cc0412f9847696c40df055ee9fd2573f9009c (patch)
tree18f92d60cf150479df1a19eaf0f9f159131e0dc7 /app
parent1db4f7bbc31d0e9f24247e4973474d37f12ab72d (diff)
follow bfdccf4d920f5172a3d88ac0358e0b06ad5fe520, missing check
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/PasswordStore.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java b/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java
index 30777d46..22abffd7 100644
--- a/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java
+++ b/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java
@@ -29,6 +29,8 @@ import org.eclipse.jgit.api.CommitCommand;
import org.eclipse.jgit.api.Git;
import java.io.File;
+import java.util.HashSet;
+import java.util.Set;
public class PasswordStore extends AppCompatActivity {
private static final String TAG = "PwdStrAct";
@@ -223,9 +225,9 @@ public class PasswordStore extends AppCompatActivity {
}
}
- final String keyId = settings.getString("openpgp_key_ids", "");
+ final Set<String> keyIds = settings.getStringSet("openpgp_key_ids_set", new HashSet<String>());
- if (keyId != null && keyId.isEmpty())
+ if (keyIds.isEmpty())
new AlertDialog.Builder(this)
.setMessage(this.getResources().getString(R.string.key_dialog_text))
.setPositiveButton(this.getResources().getString(R.string.dialog_positive), new DialogInterface.OnClickListener() {