mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-30 13:12:25 -05:00
astyle
This commit is contained in:
parent
a551dc8dff
commit
a8de2d0000
@ -578,15 +578,15 @@ public class Account implements BaseAccount
|
||||
|
||||
public void resetVisibleLimits()
|
||||
{
|
||||
try
|
||||
{
|
||||
LocalStore localStore = getLocalStore();
|
||||
localStore.resetVisibleLimits(getDisplayCount());
|
||||
}
|
||||
catch (MessagingException e)
|
||||
{
|
||||
Log.e(K9.LOG_TAG, "Unable to reset visible limits", e);
|
||||
}
|
||||
try
|
||||
{
|
||||
LocalStore localStore = getLocalStore();
|
||||
localStore.resetVisibleLimits(getDisplayCount());
|
||||
}
|
||||
catch (MessagingException e)
|
||||
{
|
||||
Log.e(K9.LOG_TAG, "Unable to reset visible limits", e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@ -2794,14 +2794,14 @@ public class MessageList
|
||||
{
|
||||
if (!mCurrentFolder.lastCheckFailed)
|
||||
{
|
||||
if (mAccount.getDisplayCount() == 0 )
|
||||
{
|
||||
if (mAccount.getDisplayCount() == 0 )
|
||||
{
|
||||
holder.main.setText(getString(R.string.message_list_load_more_messages_action));
|
||||
}
|
||||
else
|
||||
{
|
||||
}
|
||||
else
|
||||
{
|
||||
holder.main.setText(String.format(getString(R.string.load_more_messages_fmt), mAccount.getDisplayCount()));
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -925,7 +925,8 @@ public class MessagingController implements Runnable
|
||||
{
|
||||
LocalStore localStore = account.getLocalStore();
|
||||
LocalFolder localFolder = localStore.getFolder(folder);
|
||||
if (localFolder.getVisibleLimit() > 0 ) {
|
||||
if (localFolder.getVisibleLimit() > 0 )
|
||||
{
|
||||
localFolder.setVisibleLimit(localFolder.getVisibleLimit() + account.getDisplayCount());
|
||||
}
|
||||
synchronizeMailbox(account, folder, listener, null);
|
||||
@ -1125,7 +1126,8 @@ public class MessagingController implements Runnable
|
||||
{
|
||||
remoteStart = Math.max(0, remoteMessageCount - visibleLimit) + 1;
|
||||
}
|
||||
else {
|
||||
else
|
||||
{
|
||||
remoteStart = 1;
|
||||
}
|
||||
int remoteEnd = remoteMessageCount;
|
||||
|
@ -1152,7 +1152,7 @@ public class LocalStore extends Store implements Serializable
|
||||
{
|
||||
if ( mVisibleLimit == 0)
|
||||
{
|
||||
return ;
|
||||
return ;
|
||||
}
|
||||
open(OpenMode.READ_WRITE);
|
||||
Message[] messages = getMessages(null, false);
|
||||
@ -4892,11 +4892,11 @@ public class LocalStore extends Store implements Serializable
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* If a message is being marked as deleted we want to clear out it's content
|
||||
* and attachments as well. Delete will not actually remove the row since we need
|
||||
* to retain the uid for synchronization purposes.
|
||||
*/
|
||||
/*
|
||||
* If a message is being marked as deleted we want to clear out it's content
|
||||
* and attachments as well. Delete will not actually remove the row since we need
|
||||
* to retain the uid for synchronization purposes.
|
||||
*/
|
||||
private void delete() throws MessagingException
|
||||
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user