This commit is contained in:
Jesse Vincent 2010-11-15 01:31:11 +00:00
parent f9d828a62c
commit 36714d3b4a
3 changed files with 29 additions and 29 deletions

View File

@ -4050,7 +4050,7 @@ public class MessagingController implements Runnable
{
queueMoveOrCopy(account, folder, account.getTrashFolderName(), false, uids);
}
processPendingCommands(account);
processPendingCommands(account);
}
else if (account.getDeletePolicy() == Account.DELETE_POLICY_MARK_AS_READ)
{

View File

@ -178,7 +178,7 @@ public class LocalStore extends Store implements Serializable, LocalStoreMigrati
/**
* {@link ThreadLocal} to check whether a DB transaction is occuring in the
* current {@link Thread}.
*
*
* @see #execute(boolean, DbCallback)
*/
private ThreadLocal<Boolean> inTransaction = new ThreadLocal<Boolean>();
@ -311,7 +311,7 @@ public class LocalStore extends Store implements Serializable, LocalStoreMigrati
/**
* Execute a DB callback in a shared context (doesn't prevent concurrent
* shared executions), taking care of locking the DB storage.
*
*
* <p>
* Can be instructed to start a transaction if none is currently active in
* the current thread. Callback will participe in any active transaction (no

View File

@ -32,7 +32,7 @@ public class StorageManager
/**
* Provides entry points (File objects) to an underlying storage,
* alleviating the caller from having to know where that storage is located.
*
*
* <p>
* Allow checking for the denoted storage availability since its lifecycle
* can evolving (a storage might become unavailable at some time and be back
@ -44,24 +44,24 @@ public class StorageManager
/**
* Retrieve the uniquely identifier for the current implementation.
*
*
* <p>
* It is expected that the identifier doesn't change over reboots since
* it'll be used to save settings and retrieve the provider at a later
* time.
* </p>
*
*
* <p>
* The returned identifier doesn't have to be user friendly.
* </p>
*
*
* @return Never <code>null</code>.
*/
String getId();
/**
* Hook point for provider initialization.
*
*
* @param context
* Never <code>null</code>.
*/
@ -80,7 +80,7 @@ public class StorageManager
* because the device doesn't provide the denoted storage. You can check
* the provider compatibility with this method to prevent from having to
* invoke this provider ever again.
*
*
* @param context
* TODO
* @return Whether this provider supports the current device.
@ -92,7 +92,7 @@ public class StorageManager
* Return the {@link File} to the choosen email database file. The
* resulting {@link File} doesn't necessarily match an existing file on
* the filesystem.
*
*
* @param context
* Never <code>null</code>.
* @param id
@ -105,7 +105,7 @@ public class StorageManager
* Return the {@link File} to the choosen attachment directory. The
* resulting {@link File} doesn't necessarily match an existing
* directory on the filesystem.
*
*
* @param context
* Never <code>null</code>.
* @param id
@ -116,7 +116,7 @@ public class StorageManager
/**
* Check for the underlying storage availability.
*
*
* @param context
* Never <code>null</code>.
* @return Whether the underlying storage returned by this provider is
@ -126,7 +126,7 @@ public class StorageManager
/**
* Retrieve the root of the underlying storage.
*
*
* @param context
* Never <code>null</code>.
* @return The root directory of the denoted storage. Never
@ -143,7 +143,7 @@ public class StorageManager
{
/**
* Invoked on storage mount (with read/write access).
*
*
* @param providerId
* Identifier (as returned by {@link StorageProvider#getId()}
* of the newly mounted storage. Never <code>null</code>.
@ -152,7 +152,7 @@ public class StorageManager
/**
* Invoked when a storage is about to be unmounted.
*
*
* @param providerId
* Identifier (as returned by {@link StorageProvider#getId()}
* of the to-be-unmounted storage. Never <code>null</code>.
@ -163,14 +163,14 @@ public class StorageManager
/**
* Base provider class for providers that rely on well-known path to check
* for storage availability.
*
*
* <p>
* Since solely checking for paths can be unsafe, this class allows to check
* for device compatibility using {@link #supportsVendor()}. If the vendor
* specific check fails, the provider won't be able to provide any valid
* File handle, regardless of the path existence.
* </p>
*
*
* <p>
* Moreover, this class validates the denoted storage path against mount
* points using {@link StorageManager#isMountPoint(File)}.
@ -247,7 +247,7 @@ public class StorageManager
/**
* Retrieve the well-known storage root directory from the actual
* implementation.
*
*
* @param context
* Never <code>null</code>.
* @return Never <code>null</code>.
@ -257,13 +257,13 @@ public class StorageManager
/**
* Strategy to access the always available internal storage.
*
*
* <p>
* This implementation is expected to work on every device since it's based
* on the regular Android API {@link Context#getDatabasePath(String)} and
* uses the resul to retrieve the DB path and the attachment directory path.
* </p>
*
*
* <p>
* The underlying storage has always been used by K-9.
* </p>
@ -333,11 +333,11 @@ public class StorageManager
* and to prevent from cluttering the storage root, the choosen directory
* will be
* <code>&lt;STORAGE_ROOT&gt;/Android/data/&lt;APPLICATION_PACKAGE_NAME&gt;/files/</code>
*
*
* <p>
* The denoted storage is usually a SD card.
* </p>
*
*
* <p>
* This provider is expected to work on all devices but the returned
* underlying storage might not be always available, due to
@ -411,13 +411,13 @@ public class StorageManager
/**
* Storage provider to allow access the /emmc directory on a HTC Incredible.
*
*
* <p>
* This implementation is experimental and _untested_.
* </p>
*
*
* See http://groups.google.com/group/android-developers/browse_frm/thread/96f15e57150ed173
*
*
* @see FixedStorageProviderBase
*/
public static class HtcIncredibleStorageProvider extends FixedStorageProviderBase
@ -456,9 +456,9 @@ public class StorageManager
* <p>
* This implementation is experimental and _untested_.
* </p>
*
*
* See http://groups.google.com/group/android-developers/browse_frm/thread/a1adf7122a75a657
*
*
* @see FixedStorageProviderBase
*/
public static class SamsungGalaxySStorageProvider extends FixedStorageProviderBase
@ -579,10 +579,10 @@ public class StorageManager
/*
* 20101113/fiouzy:
*
*
* Here is where we define which providers are used, currently we only
* allow the internal storage and the regular external storage.
*
*
* HTC Incredible storage and Samsung Galaxy S are omitted on purpose
* (they're experimental and I don't have those devices to test).
*