|
|
|
@ -1348,9 +1348,8 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|
|
|
|
|
|
|
|
|
if (encrypted == null) {
|
|
|
|
|
EntityMessage message = db.message().getMessage(id);
|
|
|
|
|
if (message.content) {
|
|
|
|
|
String body = message.read(context);
|
|
|
|
|
if (body != null) {
|
|
|
|
|
|
|
|
|
|
// https://tools.ietf.org/html/rfc4880#section-6.2
|
|
|
|
|
int begin = body.indexOf(PGP_BEGIN_MESSAGE);
|
|
|
|
|
int end = body.indexOf(PGP_END_MESSAGE);
|
|
|
|
@ -1367,8 +1366,6 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|
|
|
|
encrypted = new ByteArrayInputStream(section.getBytes());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (encrypted == null)
|
|
|
|
|
throw new IllegalArgumentException(getString(R.string.title_not_encrypted));
|
|
|
|
|