From a59f5b4cc71e8e47ce96afbf09f97d1c8006cda3 Mon Sep 17 00:00:00 2001 From: Matthew Wong Date: Wed, 26 Aug 2015 18:03:23 -0400 Subject: Fix #120 -- editing not creating git commits and yet another version bump --- app/src/main/java/com/zeapo/pwdstore/PasswordStore.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'app/src/main/java') 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( -- cgit v1.2.3