Fix #120 -- editing not creating git commits and yet another version bump

This commit is contained in:
Matthew Wong 2015-08-26 18:03:23 -04:00
parent f6d3dc23fb
commit a59f5b4cc7
2 changed files with 6 additions and 3 deletions

View file

@ -9,8 +9,8 @@ android {
applicationId "com.zeapo.pwdstore"
minSdkVersion 15
targetSdkVersion 23
versionCode 50
versionName "1.2.0.30"
versionCode 51
versionName "1.2.0.31"
}
compileOptions {

View file

@ -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(