mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 19:52:17 -05:00
rerun astyle
This commit is contained in:
parent
1c5073039a
commit
a926911e7f
@ -76,7 +76,7 @@ public class Account implements Serializable
|
||||
public static final String EXPUNGE_IMMEDIATELY = "EXPUNGE_IMMEDIATELY";
|
||||
public static final String EXPUNGE_MANUALLY = "EXPUNGE_MANUALLY";
|
||||
public static final String EXPUNGE_ON_POLL = "EXPUNGE_ON_POLL";
|
||||
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 0 Never
|
||||
|
@ -61,7 +61,7 @@ public class K9 extends Application
|
||||
*/
|
||||
public static boolean ENABLE_ERROR_FOLDER = true;
|
||||
public static String ERROR_FOLDER_NAME = "K9mail-errors";
|
||||
|
||||
|
||||
private static boolean mAnimations = true;
|
||||
|
||||
/**
|
||||
|
@ -993,10 +993,10 @@ public class MessagingController implements Runnable
|
||||
|
||||
int unreadMessageCount = setLocalUnreadCountToRemote(localFolder, remoteFolder, newMessages);
|
||||
|
||||
for (MessagingListener l : getListeners())
|
||||
{
|
||||
l.folderStatusChanged(account, folder, unreadMessageCount);
|
||||
}
|
||||
for (MessagingListener l : getListeners())
|
||||
{
|
||||
l.folderStatusChanged(account, folder, unreadMessageCount);
|
||||
}
|
||||
|
||||
/*
|
||||
* Notify listeners that we're finally done.
|
||||
@ -3407,7 +3407,7 @@ public class MessagingController implements Runnable
|
||||
}
|
||||
|
||||
public void expunge(final Account account, final String folder, final MessagingListener listener)
|
||||
{
|
||||
{
|
||||
putBackground("expunge", null, new Runnable()
|
||||
{
|
||||
public void run()
|
||||
|
@ -480,7 +480,7 @@ public class FolderList extends K9ListActivity
|
||||
|
||||
MessagingController.getInstance(getApplication()).emptyTrash(account, null);
|
||||
}
|
||||
|
||||
|
||||
private void onExpunge(final Account account, String folderName)
|
||||
{
|
||||
MessagingController.getInstance(getApplication()).expunge(account, folderName, null);
|
||||
|
@ -678,7 +678,7 @@ public class MessageList
|
||||
|
||||
private void onOpenMessage(MessageInfoHolder message)
|
||||
{
|
||||
if ( message.folder.name.equals(message.account.getDraftsFolderName()))
|
||||
if (message.folder.name.equals(message.account.getDraftsFolderName()))
|
||||
{
|
||||
MessageCompose.actionEditDraft(this, message.account, message.message);
|
||||
}
|
||||
@ -1496,9 +1496,10 @@ public class MessageList
|
||||
AdapterContextMenuInfo info = (AdapterContextMenuInfo) menuInfo;
|
||||
MessageInfoHolder message = (MessageInfoHolder) mAdapter.getItem(info.position);
|
||||
|
||||
// in multi-select mode, the context menu pops up unintentionally
|
||||
// in multi-select mode, the context menu pops up unintentionally
|
||||
// causes misclicks
|
||||
if (mSelectedWidget == WIDGET_MULTISELECT) {
|
||||
if (mSelectedWidget == WIDGET_MULTISELECT)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -180,7 +180,7 @@ public class AccountSettings extends K9PreferenceActivity
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
mPushLimit = (ListPreference) findPreference(PREFERENCE_PUSH_LIMIT);
|
||||
mPushLimit.setEnabled(isPushCapable);
|
||||
mPushLimit.setValue(String.valueOf(mAccount.getMaxPushFolders()));
|
||||
@ -226,7 +226,7 @@ public class AccountSettings extends K9PreferenceActivity
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
mExpungePolicy = (ListPreference) findPreference(PREFERENCE_EXPUNGE_POLICY);
|
||||
mExpungePolicy.setEnabled(isExpungeCapable);
|
||||
@ -243,7 +243,7 @@ public class AccountSettings extends K9PreferenceActivity
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
mDisplayCount = (ListPreference) findPreference(PREFERENCE_DISPLAY_COUNT);
|
||||
mDisplayCount.setValue(String.valueOf(mAccount.getDisplayCount()));
|
||||
mDisplayCount.setSummary(mDisplayCount.getEntry());
|
||||
|
@ -118,7 +118,7 @@ public abstract class Folder
|
||||
public abstract String getUidFromMessageId(Message message) throws MessagingException;
|
||||
|
||||
public void expunge() throws MessagingException
|
||||
{}
|
||||
{}
|
||||
|
||||
public abstract void fetch(Message[] messages, FetchProfile fp,
|
||||
MessageRetrievalListener listener) throws MessagingException;
|
||||
|
@ -110,8 +110,8 @@ public abstract class Store
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public void sendMessages(Message[] messages) throws MessagingException
|
||||
{
|
||||
}
|
||||
|
@ -163,7 +163,7 @@ public class ImapStore extends Store
|
||||
mAuthType = AuthType.PLAIN;
|
||||
mUsername = userInfoParts[0];
|
||||
mPassword = userInfoParts[1];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
mAuthType = AuthType.valueOf(userInfoParts[0]);
|
||||
@ -600,7 +600,7 @@ public class ImapStore extends Store
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
synchronized (this)
|
||||
{
|
||||
releaseConnection(mConnection);
|
||||
|
@ -33,13 +33,13 @@ public abstract class CoreService extends Service
|
||||
WakeLock wakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "K9");
|
||||
wakeLock.setReferenceCounted(false);
|
||||
wakeLock.acquire(K9.MAIL_SERVICE_WAKE_LOCK_TIMEOUT);
|
||||
|
||||
|
||||
Integer tmpWakeLockId = wakeLockSeq.getAndIncrement();
|
||||
wakeLocks.put(tmpWakeLockId, wakeLock);
|
||||
|
||||
|
||||
i.putExtra(WAKE_LOCK_ID, tmpWakeLockId);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void onStart(Intent intent, int startId)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user