mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-02 00:25:10 -04:00
Hide the message header while flipping messages, rather than displaying
the "wrong" thing during load.
This commit is contained in:
parent
00199de3bb
commit
73da009409
@ -500,6 +500,37 @@ public class MessageView extends K9Activity implements OnClickListener
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void showHeaderContainer()
|
||||
{
|
||||
{
|
||||
runOnUiThread(new Runnable()
|
||||
{
|
||||
public void run()
|
||||
{
|
||||
mHeaderContainer.setVisibility(View.VISIBLE);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
private void hideHeaderContainer()
|
||||
{
|
||||
{
|
||||
runOnUiThread(new Runnable()
|
||||
{
|
||||
public void run()
|
||||
{
|
||||
mHeaderContainer.setVisibility(View.GONE);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Clear the text field for the additional headers display if they are
|
||||
* not shown, to save UI resources.
|
||||
@ -899,6 +930,7 @@ public class MessageView extends K9Activity implements OnClickListener
|
||||
mMessageContentView.getSettings().setBlockNetworkImage(true);
|
||||
K9.setBlockNetworkLoads(mMessageContentView.getSettings(), true);
|
||||
|
||||
mHandler.hideHeaderContainer();
|
||||
mAttachments.removeAllViews();
|
||||
findSurroundingMessagesUid();
|
||||
|
||||
@ -1843,6 +1875,7 @@ public class MessageView extends K9Activity implements OnClickListener
|
||||
try
|
||||
{
|
||||
setHeaders(account, folder, uid, message);
|
||||
mHandler.showHeaderContainer();
|
||||
}
|
||||
catch (MessagingException me)
|
||||
{
|
||||
@ -1868,6 +1901,7 @@ public class MessageView extends K9Activity implements OnClickListener
|
||||
{
|
||||
|
||||
setHeaders(account, folder, uid, message);
|
||||
mHandler.showHeaderContainer();
|
||||
}
|
||||
|
||||
MessageView.this.mMessage = message;
|
||||
|
Loading…
Reference in New Issue
Block a user