1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-24 08:38:51 -05:00

Display 'Downloading...' instead of 'Loading...' when we are fetching a message from remote store

This commit is contained in:
Bao-Long Nguyen-Trong 2009-09-17 17:40:05 +00:00
parent 08cd19e5a8
commit 75636b697c
2 changed files with 21 additions and 1 deletions

17
assets/downloading.html Normal file
View File

@ -0,0 +1,17 @@
<html>
<body bgcolor="white">
<table width="100%" height="100%">
<tr>
<td align="center" valign="center">
<font color="gray">Downloading...</font>
<br/>
<br/>
<br/>
<br/>
<br/>
<img src="loading.gif">
</td>
</tr>
</table>
</body>
</html>

View File

@ -1110,6 +1110,9 @@ public class MessageView extends K9Activity
} }
MessageView.this.mMessage = message; MessageView.this.mMessage = message;
if (!message.isSet(Flag.X_DOWNLOADED_FULL)) {
mMessageContentView.loadUrl("file:///android_asset/downloading.html");
}
try { try {
setHeaders(account, folder, uid, message); setHeaders(account, folder, uid, message);
} }
@ -1211,7 +1214,7 @@ public class MessageView extends K9Activity
mHandler.post(new Runnable() { mHandler.post(new Runnable() {
public void run() { public void run() {
mMessageContentView.loadUrl("file:///android_asset/loading.html"); mMessageContentView.loadUrl("file:///android_asset/loading.html");
setProgressBarIndeterminateVisibility(true); setProgressBarIndeterminateVisibility(true);
} }
}); });
} }