Skip to content

Commit

Permalink
Merge pull request #2114 from dimagi/signFix
Browse files Browse the repository at this point in the history
Fix Sign Save
  • Loading branch information
ctsims authored May 6, 2019
2 parents 4bb65d6 + a04fb76 commit 3a19594
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/src/org/commcare/views/widgets/SignatureWidget.java
Original file line number Diff line number Diff line change
Expand Up @@ -201,15 +201,14 @@ public IAnswerData getAnswer() {


@Override
public void setBinaryData(Object binaryURI) {
public void setBinaryData(Object binaryPath) {
// you are replacing an answer. delete the previous image using the
// content provider.
if (mBinaryName != null) {
deleteMedia();
}

String binaryPath = UrlUtils.getPathFromUri((Uri)binaryURI, getContext());
File f = new File(binaryPath);
File f = new File(binaryPath.toString());
mBinaryName = f.getName();
Log.i(t, "Setting current answer to " + f.getName());
}
Expand Down

0 comments on commit 3a19594

Please sign in to comment.