@@ -476,7 +476,7 @@ public void onClick(DialogInterface dialogInterface, int i) {
476476 it .remove ();
477477 adapter .updateSelectedItems (position , selectedItems );
478478
479- commitAdd ("[ANDROID PwdStore] Remove " + item + " from store." );
479+ commitChange ("[ANDROID PwdStore] Remove " + item + " from store." );
480480 deletePasswords (adapter , selectedItems );
481481 }
482482 })
@@ -532,7 +532,7 @@ private File getCurrentDir() {
532532 return PasswordRepository .getRepositoryDirectory (getApplicationContext ());
533533 }
534534
535- private void commitAdd (final String message ) {
535+ private void commitChange (final String message ) {
536536 new GitOperation (PasswordRepository .getRepositoryDirectory (activity ), activity ) {
537537 @ Override
538538 public void execute () {
@@ -556,18 +556,18 @@ protected void onActivityResult(int requestCode, int resultCode,
556556 settings .edit ().putBoolean ("repository_initialized" , true ).apply ();
557557 break ;
558558 case PgpHandler .REQUEST_CODE_DECRYPT_AND_VERIFY :
559- // if went from decrypt->edit and user saved changes, we need to commitAdd
559+ // if went from decrypt->edit and user saved changes, we need to commitChange
560560 if (data .getBooleanExtra ("needCommit" , false )) {
561- commitAdd (this .getResources ().getString (R .string .edit_commit_text ) + data .getExtras ().getString ("NAME" ));
561+ commitChange (this .getResources ().getString (R .string .edit_commit_text ) + data .getExtras ().getString ("NAME" ));
562562 refreshListAdapter ();
563563 }
564564 break ;
565565 case PgpHandler .REQUEST_CODE_ENCRYPT :
566- commitAdd (this .getResources ().getString (R .string .add_commit_text ) + data .getExtras ().getString ("NAME" ) + this .getResources ().getString (R .string .from_store ));
566+ commitChange (this .getResources ().getString (R .string .add_commit_text ) + data .getExtras ().getString ("NAME" ) + this .getResources ().getString (R .string .from_store ));
567567 refreshListAdapter ();
568568 break ;
569569 case PgpHandler .REQUEST_CODE_EDIT :
570- commitAdd (this .getResources ().getString (R .string .edit_commit_text ) + data .getExtras ().getString ("NAME" ));
570+ commitChange (this .getResources ().getString (R .string .edit_commit_text ) + data .getExtras ().getString ("NAME" ));
571571 refreshListAdapter ();
572572 break ;
573573 case GitActivity .REQUEST_INIT :
@@ -622,7 +622,7 @@ protected void onActivityResult(int requestCode, int resultCode,
622622 // TODO this should show a warning to the user
623623 Log .e ("Moving" , "Something went wrong while moving." );
624624 } else {
625- commitAdd ("[ANDROID PwdStore] Moved "
625+ commitChange ("[ANDROID PwdStore] Moved "
626626 + string .replace (PasswordRepository .getRepositoryDirectory (getApplicationContext ()) + "/" , "" )
627627 + " to "
628628 + target .getAbsolutePath ().replace (PasswordRepository .getRepositoryDirectory (getApplicationContext ()) + "/" , "" )
0 commit comments