From 75636b697c554fff0fe2ed0501eff05485831b59 Mon Sep 17 00:00:00 2001 From: Bao-Long Nguyen-Trong Date: Thu, 17 Sep 2009 17:40:05 +0000 Subject: [PATCH] Display 'Downloading...' instead of 'Loading...' when we are fetching a message from remote store --- assets/downloading.html | 17 +++++++++++++++++ src/com/android/email/activity/MessageView.java | 5 ++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 assets/downloading.html diff --git a/assets/downloading.html b/assets/downloading.html new file mode 100644 index 000000000..403950b57 --- /dev/null +++ b/assets/downloading.html @@ -0,0 +1,17 @@ + + + + + + +
+ Downloading... +
+
+
+
+
+ +
+ + \ No newline at end of file diff --git a/src/com/android/email/activity/MessageView.java b/src/com/android/email/activity/MessageView.java index 9a4cb5c76..1664913a4 100644 --- a/src/com/android/email/activity/MessageView.java +++ b/src/com/android/email/activity/MessageView.java @@ -1110,6 +1110,9 @@ public class MessageView extends K9Activity } MessageView.this.mMessage = message; + if (!message.isSet(Flag.X_DOWNLOADED_FULL)) { + mMessageContentView.loadUrl("file:///android_asset/downloading.html"); + } try { setHeaders(account, folder, uid, message); } @@ -1211,7 +1214,7 @@ public class MessageView extends K9Activity mHandler.post(new Runnable() { public void run() { mMessageContentView.loadUrl("file:///android_asset/loading.html"); - setProgressBarIndeterminateVisibility(true); + setProgressBarIndeterminateVisibility(true); } }); }