|
|
|
@ -39,14 +39,20 @@ public class ActivityEml extends ActivityBase {
|
|
|
|
|
final TextView tvEml = findViewById(R.id.tvEml);
|
|
|
|
|
final ContentLoadingProgressBar pbWait = findViewById(R.id.pbWait);
|
|
|
|
|
final Group grpEml = findViewById(R.id.grpEml);
|
|
|
|
|
|
|
|
|
|
grpEml.setVisibility(View.GONE);
|
|
|
|
|
pbWait.setVisibility(View.VISIBLE);
|
|
|
|
|
|
|
|
|
|
Log.logExtras(getIntent());
|
|
|
|
|
Log.i("EML uri=" + getIntent().getData());
|
|
|
|
|
Uri uri = getIntent().getData();
|
|
|
|
|
if (uri == null) {
|
|
|
|
|
pbWait.setVisibility(View.GONE);
|
|
|
|
|
return;
|
|
|
|
|
} else
|
|
|
|
|
pbWait.setVisibility(View.VISIBLE);
|
|
|
|
|
|
|
|
|
|
Log.i("EML uri=" + uri);
|
|
|
|
|
|
|
|
|
|
Bundle args = new Bundle();
|
|
|
|
|
args.putParcelable("uri", getIntent().getData());
|
|
|
|
|
args.putParcelable("uri", uri);
|
|
|
|
|
|
|
|
|
|
new SimpleTask<Result>() {
|
|
|
|
|
@Override
|
|
|
|
@ -77,7 +83,7 @@ public class ActivityEml extends ActivityBase {
|
|
|
|
|
MessageHelper.MessageParts parts = helper.getMessageParts();
|
|
|
|
|
|
|
|
|
|
StringBuilder sb = new StringBuilder();
|
|
|
|
|
for (MessageHelper.AttachmentPart apart : parts.getRawAttachments()) {
|
|
|
|
|
for (MessageHelper.AttachmentPart apart : parts.getAttachmentParts()) {
|
|
|
|
|
if (sb.length() > 0)
|
|
|
|
|
sb.append("<br />");
|
|
|
|
|
sb.append(
|
|
|
|
|