summaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/PasswordStore.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java b/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java
index ce4b02ec..d6e18995 100644
--- a/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java
+++ b/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java
@@ -442,7 +442,10 @@ public class PasswordStore extends AppCompatActivity {
// if we get here with a RESULT_OK then it's probably OK :)
settings.edit().putBoolean("repository_initialized", true).apply();
break;
- case PgpHandler.REQUEST_CODE_ENCRYPT :
+ case PgpHandler.REQUEST_CODE_ENCRYPT:
+ case PgpHandler.REQUEST_CODE_DECRYPT_AND_VERIFY:
+ // RESULT_OK and REQUEST_CODE_DECRYPT_AND_VERIFY only when a file has been edited
+ // since normally REQUEST_CODE_DECRYPT_AND_VERIFY returns RESULT_CANCELLED
Git git = new Git(PasswordRepository.getRepository(new File("")));
GitAsyncTask tasks = new GitAsyncTask(this, false, false, CommitCommand.class);
tasks.execute(