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:
parent
08cd19e5a8
commit
75636b697c
17
assets/downloading.html
Normal file
17
assets/downloading.html
Normal 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>
|
@ -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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user