Fix nfc signing
This commit is contained in:
@@ -569,7 +569,7 @@ public class PgpSignEncrypt {
|
|||||||
SignEncryptResult result =
|
SignEncryptResult result =
|
||||||
new SignEncryptResult(SignEncryptResult.RESULT_PENDING_NFC, log);
|
new SignEncryptResult(SignEncryptResult.RESULT_PENDING_NFC, log);
|
||||||
result.setNfcData(e.hashToSign, e.hashAlgo, e.creationTimestamp);
|
result.setNfcData(e.hashToSign, e.hashAlgo, e.creationTimestamp);
|
||||||
return new SignEncryptResult(SignEncryptResult.RESULT_PENDING_NFC, log);
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ public class SignEncryptResult extends OperationResult {
|
|||||||
dest.writeInt(0);
|
dest.writeInt(0);
|
||||||
}
|
}
|
||||||
dest.writeInt(mNfcAlgo);
|
dest.writeInt(mNfcAlgo);
|
||||||
if (mNfcHash != null) {
|
if (mNfcTimestamp != null) {
|
||||||
dest.writeInt(1);
|
dest.writeInt(1);
|
||||||
dest.writeLong(mNfcTimestamp.getTime());
|
dest.writeLong(mNfcTimestamp.getTime());
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user