Skip to content

Commit

Permalink
Add logs while saving signature
Browse files Browse the repository at this point in the history
  • Loading branch information
ShivamPokhriyal committed Mar 17, 2021
1 parent 30f8996 commit e57f829
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/src/org/commcare/activities/DrawActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ protected void onCreate(Bundle savedInstanceState) {

private void saveAndClose() {
try {
Logger.log(LogTypes.SOFT_ASSERT, "Attempting to save signature");
saveFile(output);
setResult(AppCompatActivity.RESULT_OK);
} catch (FileNotFoundException e) {
Expand Down
1 change: 1 addition & 0 deletions app/src/org/commcare/activities/FormEntryActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ public void onActivityResultSessionSafe(int requestCode, int resultCode, Intent
ImageCaptureProcessing.processCaptureResponse(this, FormEntryInstanceState.getInstanceFolder(), true);
break;
case FormEntryConstants.SIGNATURE_CAPTURE:
Logger.log(LogTypes.SOFT_ASSERT, "Signature captured successfully");
boolean saved = ImageCaptureProcessing.processCaptureResponse(this, FormEntryInstanceState.getInstanceFolder(), false);
if (saved && !uiController.questionsView.isQuestionList()) {
// attempt to auto-advance if a signature was captured
Expand Down

0 comments on commit e57f829

Please sign in to comment.