Skip to content

Commit

Permalink
Fix Sign Save
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham1g5 committed May 3, 2019
1 parent 4bb65d6 commit a04fb76
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 a04fb76

Please sign in to comment.