mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-25 15:32:52 +00:00
Small improvements
This commit is contained in:
parent
4fc775d711
commit
a2ece1c910
2 changed files with 13 additions and 7 deletions
|
@ -39,14 +39,20 @@ public class ActivityEml extends ActivityBase {
|
||||||
final TextView tvEml = findViewById(R.id.tvEml);
|
final TextView tvEml = findViewById(R.id.tvEml);
|
||||||
final ContentLoadingProgressBar pbWait = findViewById(R.id.pbWait);
|
final ContentLoadingProgressBar pbWait = findViewById(R.id.pbWait);
|
||||||
final Group grpEml = findViewById(R.id.grpEml);
|
final Group grpEml = findViewById(R.id.grpEml);
|
||||||
|
|
||||||
grpEml.setVisibility(View.GONE);
|
grpEml.setVisibility(View.GONE);
|
||||||
|
|
||||||
|
Uri uri = getIntent().getData();
|
||||||
|
if (uri == null) {
|
||||||
|
pbWait.setVisibility(View.GONE);
|
||||||
|
return;
|
||||||
|
} else
|
||||||
pbWait.setVisibility(View.VISIBLE);
|
pbWait.setVisibility(View.VISIBLE);
|
||||||
|
|
||||||
Log.logExtras(getIntent());
|
Log.i("EML uri=" + uri);
|
||||||
Log.i("EML uri=" + getIntent().getData());
|
|
||||||
|
|
||||||
Bundle args = new Bundle();
|
Bundle args = new Bundle();
|
||||||
args.putParcelable("uri", getIntent().getData());
|
args.putParcelable("uri", uri);
|
||||||
|
|
||||||
new SimpleTask<Result>() {
|
new SimpleTask<Result>() {
|
||||||
@Override
|
@Override
|
||||||
|
@ -77,7 +83,7 @@ public class ActivityEml extends ActivityBase {
|
||||||
MessageHelper.MessageParts parts = helper.getMessageParts();
|
MessageHelper.MessageParts parts = helper.getMessageParts();
|
||||||
|
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
for (MessageHelper.AttachmentPart apart : parts.getRawAttachments()) {
|
for (MessageHelper.AttachmentPart apart : parts.getAttachmentParts()) {
|
||||||
if (sb.length() > 0)
|
if (sb.length() > 0)
|
||||||
sb.append("<br />");
|
sb.append("<br />");
|
||||||
sb.append(
|
sb.append(
|
||||||
|
|
|
@ -626,7 +626,7 @@ public class MessageHelper {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
List<AttachmentPart> getRawAttachments() {
|
List<AttachmentPart> getAttachmentParts() {
|
||||||
return attachments;
|
return attachments;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue