mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-24 08:38:51 -05:00
It turns out that a big part of our perceptible message switching time
was loading the "loading..." file into the WebView. Since it doesn't take that long to load the real content, replacing the "Loading..." file with "blank the view" seems to actually feel a heck of a lot faster.
This commit is contained in:
parent
f2729fc58b
commit
d4695636f3
@ -1023,6 +1023,7 @@ public class MessageView extends K9Activity implements OnClickListener
|
||||
|
||||
mAccount = Preferences.getPreferences(this).getAccount(ref.accountUuid);
|
||||
|
||||
mMessageContentView.clearView();
|
||||
mMessageContentView.getSettings().setBlockNetworkImage(true);
|
||||
K9.setBlockNetworkLoads(mMessageContentView.getSettings(), true);
|
||||
|
||||
@ -2221,7 +2222,6 @@ public class MessageView extends K9Activity implements OnClickListener
|
||||
{
|
||||
public void run()
|
||||
{
|
||||
mMessageContentView.loadUrl("file:///android_asset/loading.html");
|
||||
updateDecryptLayout();
|
||||
setProgressBarIndeterminateVisibility(true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user