aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/thialfihar/android/apg/DecryptActivity.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/thialfihar/android/apg/DecryptActivity.java')
-rw-r--r--src/org/thialfihar/android/apg/DecryptActivity.java17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/org/thialfihar/android/apg/DecryptActivity.java b/src/org/thialfihar/android/apg/DecryptActivity.java
index 5b598d725..76b84c79c 100644
--- a/src/org/thialfihar/android/apg/DecryptActivity.java
+++ b/src/org/thialfihar/android/apg/DecryptActivity.java
@@ -509,7 +509,7 @@ public class DecryptActivity extends BaseActivity {
OutputStream out = mDataDestination.getOutputStream(this);
if (mSignedOnly) {
- data = Apg.verifyText(this, in, out, this);
+ data = Apg.verifyText(this, in, out, this, getRunningThread(), getHandler());
} else {
data = Apg.decrypt(this, in, out, Apg.getCachedPassPhrase(getSecretKeyId()),
this, mAssumeSymmetricEncryption);
@@ -539,7 +539,7 @@ public class DecryptActivity extends BaseActivity {
error = "" + e;
}
- data.putInt(Apg.EXTRA_STATUS, Id.message.done);
+ data.putInt(Constants.extras.status, Id.message.done);
if (error != null) {
data.putString(Apg.EXTRA_ERROR, error);
@@ -549,6 +549,19 @@ public class DecryptActivity extends BaseActivity {
sendMessage(msg);
}
+ public void handlerCallback(Message msg) {
+ Bundle data = msg.getData();
+ if (data == null) {
+ return;
+ }
+
+ if (data.getInt(Constants.extras.status) == Id.message.unknown_signature_key) {
+
+ }
+
+ super.handlerCallback(msg);
+ }
+
@Override
public void doneCallback(Message msg) {
super.doneCallback(msg);