mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 11:42:16 -05:00
simplify the "load a url for the message body" signature
This commit is contained in:
parent
111b9a6305
commit
06baf3f602
@ -1108,7 +1108,7 @@ public class MessageView extends K9Activity implements OnClickListener {
|
||||
} else {
|
||||
mHandler.post(new Runnable() {
|
||||
public void run() {
|
||||
mMessageView.loadBodyFromUrl(mMessage, "file:///android_asset/empty.html");
|
||||
mMessageView.loadBodyFromUrl("file:///android_asset/empty.html");
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -1134,7 +1134,7 @@ public class MessageView extends K9Activity implements OnClickListener {
|
||||
new Runnable() {
|
||||
public void run() {
|
||||
if (!message.isSet(Flag.X_DOWNLOADED_FULL) && !message.isSet(Flag.X_DOWNLOADED_PARTIAL)) {
|
||||
mMessageView.loadBodyFromUrl(mMessage, "file:///android_asset/downloading.html");
|
||||
mMessageView.loadBodyFromUrl("file:///android_asset/downloading.html");
|
||||
}
|
||||
mMessageView.setHeaders(message, account);
|
||||
}
|
||||
@ -1171,7 +1171,7 @@ public class MessageView extends K9Activity implements OnClickListener {
|
||||
}
|
||||
if ((MessageView.this.mMessage == null) ||
|
||||
!MessageView.this.mMessage.isSet(Flag.X_DOWNLOADED_PARTIAL)) {
|
||||
mMessageView.loadBodyFromUrl(mMessage, "file:///android_asset/empty.html");
|
||||
mMessageView.loadBodyFromUrl("file:///android_asset/empty.html");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -117,7 +117,7 @@ public class SingleMessageView extends LinearLayout {
|
||||
}
|
||||
|
||||
|
||||
public void loadBodyFromUrl(Message message, String url) {
|
||||
public void loadBodyFromUrl(String url) {
|
||||
mMessageContentView.loadUrl(url);
|
||||
// TODO reenable: updateCryptoLayout(cryptoProvider, pgpData, message);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user