Improved error message

This commit is contained in:
M66B
2018-11-10 15:14:26 +00:00
parent d5f3142c58
commit f454edd57d

View File

@@ -980,7 +980,10 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
boolean found = false;
List<EntityAttachment> attachments = db.attachment().getAttachments(id);
for (EntityAttachment attachment : attachments)
if (attachment.available && "encrypted.asc".equals(attachment.name)) {
if ("encrypted.asc".equals(attachment.name)) {
if (!attachment.available)
throw new IllegalArgumentException(getString(R.string.title_attachments_missing));
found = true;
// Serialize encrypted data