aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/java/org/sufficientlysecure
diff options
context:
space:
mode:
authorDominik Schürmann <dominik@dominikschuermann.de>2016-01-04 00:26:31 +0100
committerDominik Schürmann <dominik@dominikschuermann.de>2016-01-04 00:26:31 +0100
commit3b54c82dc031f7deeba2601a183819b7f3ec1128 (patch)
tree87174eb07ddb0f06b2775b71bd4790f4dc6c0dc1 /OpenKeychain/src/main/java/org/sufficientlysecure
parent40c57b68dcbb04f40327f5e5944f87ced004b2c9 (diff)
downloadopen-keychain-3b54c82dc031f7deeba2601a183819b7f3ec1128.tar.gz
open-keychain-3b54c82dc031f7deeba2601a183819b7f3ec1128.tar.bz2
open-keychain-3b54c82dc031f7deeba2601a183819b7f3ec1128.zip
Fix #1649
Diffstat (limited to 'OpenKeychain/src/main/java/org/sufficientlysecure')
-rw-r--r--OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewCertActivity.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewCertActivity.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewCertActivity.java
index 8d876ba69..596b223fe 100644
--- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewCertActivity.java
+++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewCertActivity.java
@@ -27,6 +27,7 @@ import android.support.v4.app.NavUtils;
import android.support.v4.content.CursorLoader;
import android.support.v4.content.Loader;
import android.support.v7.app.ActionBar;
+import android.text.TextUtils;
import android.text.format.DateFormat;
import android.view.MenuItem;
import android.view.View;
@@ -161,14 +162,16 @@ public class ViewCertActivity extends BaseActivity
break;
case WrappedSignature.CERTIFICATION_REVOCATION: {
mType.setText(R.string.cert_revoke);
- if (sig.isRevocation()) {
- try {
+ try {
+ if (! TextUtils.isEmpty(sig.getRevocationReason())) {
mReason.setText(sig.getRevocationReason());
- } catch(PgpGeneralException e) {
+ } else {
mReason.setText(R.string.none);
}
- mRowReason.setVisibility(View.VISIBLE);
+ } catch (PgpGeneralException e) {
+ mReason.setText(R.string.none);
}
+ mRowReason.setVisibility(View.VISIBLE);
break;
}
}