mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-31 22:35:17 +00:00
Fix #120 -- editing not creating git commits and yet another version bump
This commit is contained in:
@@ -9,8 +9,8 @@ android {
|
|||||||
applicationId "com.zeapo.pwdstore"
|
applicationId "com.zeapo.pwdstore"
|
||||||
minSdkVersion 15
|
minSdkVersion 15
|
||||||
targetSdkVersion 23
|
targetSdkVersion 23
|
||||||
versionCode 50
|
versionCode 51
|
||||||
versionName "1.2.0.30"
|
versionName "1.2.0.31"
|
||||||
}
|
}
|
||||||
|
|
||||||
compileOptions {
|
compileOptions {
|
||||||
|
@@ -442,7 +442,10 @@ public class PasswordStore extends AppCompatActivity {
|
|||||||
// if we get here with a RESULT_OK then it's probably OK :)
|
// if we get here with a RESULT_OK then it's probably OK :)
|
||||||
settings.edit().putBoolean("repository_initialized", true).apply();
|
settings.edit().putBoolean("repository_initialized", true).apply();
|
||||||
break;
|
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("")));
|
Git git = new Git(PasswordRepository.getRepository(new File("")));
|
||||||
GitAsyncTask tasks = new GitAsyncTask(this, false, false, CommitCommand.class);
|
GitAsyncTask tasks = new GitAsyncTask(this, false, false, CommitCommand.class);
|
||||||
tasks.execute(
|
tasks.execute(
|
||||||
|
Reference in New Issue
Block a user