1
0
mirror of https://github.com/moparisthebest/k-9 synced 2025-02-20 04:31:47 -05:00
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); queueMoveOrCopy(account, folder, account.getTrashFolderName(), false, uids);
} }
processPendingCommands(account); processPendingCommands(account);
} }
else if (account.getDeletePolicy() == Account.DELETE_POLICY_MARK_AS_READ) 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 * {@link ThreadLocal} to check whether a DB transaction is occuring in the
* current {@link Thread}. * current {@link Thread}.
* *
* @see #execute(boolean, DbCallback) * @see #execute(boolean, DbCallback)
*/ */
private ThreadLocal<Boolean> inTransaction = new ThreadLocal<Boolean>(); 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 * Execute a DB callback in a shared context (doesn't prevent concurrent
* shared executions), taking care of locking the DB storage. * shared executions), taking care of locking the DB storage.
* *
* <p> * <p>
* Can be instructed to start a transaction if none is currently active in * Can be instructed to start a transaction if none is currently active in
* the current thread. Callback will participe in any active transaction (no * 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, * Provides entry points (File objects) to an underlying storage,
* alleviating the caller from having to know where that storage is located. * alleviating the caller from having to know where that storage is located.
* *
* <p> * <p>
* Allow checking for the denoted storage availability since its lifecycle * Allow checking for the denoted storage availability since its lifecycle
* can evolving (a storage might become unavailable at some time and be back * 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. * Retrieve the uniquely identifier for the current implementation.
* *
* <p> * <p>
* It is expected that the identifier doesn't change over reboots since * 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 * it'll be used to save settings and retrieve the provider at a later
* time. * time.
* </p> * </p>
* *
* <p> * <p>
* The returned identifier doesn't have to be user friendly. * The returned identifier doesn't have to be user friendly.
* </p> * </p>
* *
* @return Never <code>null</code>. * @return Never <code>null</code>.
*/ */
String getId(); String getId();
/** /**
* Hook point for provider initialization. * Hook point for provider initialization.
* *
* @param context * @param context
* Never <code>null</code>. * Never <code>null</code>.
*/ */
@ -80,7 +80,7 @@ public class StorageManager
* because the device doesn't provide the denoted storage. You can check * because the device doesn't provide the denoted storage. You can check
* the provider compatibility with this method to prevent from having to * the provider compatibility with this method to prevent from having to
* invoke this provider ever again. * invoke this provider ever again.
* *
* @param context * @param context
* TODO * TODO
* @return Whether this provider supports the current device. * @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 * Return the {@link File} to the choosen email database file. The
* resulting {@link File} doesn't necessarily match an existing file on * resulting {@link File} doesn't necessarily match an existing file on
* the filesystem. * the filesystem.
* *
* @param context * @param context
* Never <code>null</code>. * Never <code>null</code>.
* @param id * @param id
@ -105,7 +105,7 @@ public class StorageManager
* Return the {@link File} to the choosen attachment directory. The * Return the {@link File} to the choosen attachment directory. The
* resulting {@link File} doesn't necessarily match an existing * resulting {@link File} doesn't necessarily match an existing
* directory on the filesystem. * directory on the filesystem.
* *
* @param context * @param context
* Never <code>null</code>. * Never <code>null</code>.
* @param id * @param id
@ -116,7 +116,7 @@ public class StorageManager
/** /**
* Check for the underlying storage availability. * Check for the underlying storage availability.
* *
* @param context * @param context
* Never <code>null</code>. * Never <code>null</code>.
* @return Whether the underlying storage returned by this provider is * @return Whether the underlying storage returned by this provider is
@ -126,7 +126,7 @@ public class StorageManager
/** /**
* Retrieve the root of the underlying storage. * Retrieve the root of the underlying storage.
* *
* @param context * @param context
* Never <code>null</code>. * Never <code>null</code>.
* @return The root directory of the denoted storage. Never * @return The root directory of the denoted storage. Never
@ -143,7 +143,7 @@ public class StorageManager
{ {
/** /**
* Invoked on storage mount (with read/write access). * Invoked on storage mount (with read/write access).
* *
* @param providerId * @param providerId
* Identifier (as returned by {@link StorageProvider#getId()} * Identifier (as returned by {@link StorageProvider#getId()}
* of the newly mounted storage. Never <code>null</code>. * 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. * Invoked when a storage is about to be unmounted.
* *
* @param providerId * @param providerId
* Identifier (as returned by {@link StorageProvider#getId()} * Identifier (as returned by {@link StorageProvider#getId()}
* of the to-be-unmounted storage. Never <code>null</code>. * 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 * Base provider class for providers that rely on well-known path to check
* for storage availability. * for storage availability.
* *
* <p> * <p>
* Since solely checking for paths can be unsafe, this class allows to check * Since solely checking for paths can be unsafe, this class allows to check
* for device compatibility using {@link #supportsVendor()}. If the vendor * for device compatibility using {@link #supportsVendor()}. If the vendor
* specific check fails, the provider won't be able to provide any valid * specific check fails, the provider won't be able to provide any valid
* File handle, regardless of the path existence. * File handle, regardless of the path existence.
* </p> * </p>
* *
* <p> * <p>
* Moreover, this class validates the denoted storage path against mount * Moreover, this class validates the denoted storage path against mount
* points using {@link StorageManager#isMountPoint(File)}. * points using {@link StorageManager#isMountPoint(File)}.
@ -247,7 +247,7 @@ public class StorageManager
/** /**
* Retrieve the well-known storage root directory from the actual * Retrieve the well-known storage root directory from the actual
* implementation. * implementation.
* *
* @param context * @param context
* Never <code>null</code>. * Never <code>null</code>.
* @return Never <code>null</code>. * @return Never <code>null</code>.
@ -257,13 +257,13 @@ public class StorageManager
/** /**
* Strategy to access the always available internal storage. * Strategy to access the always available internal storage.
* *
* <p> * <p>
* This implementation is expected to work on every device since it's based * This implementation is expected to work on every device since it's based
* on the regular Android API {@link Context#getDatabasePath(String)} and * on the regular Android API {@link Context#getDatabasePath(String)} and
* uses the resul to retrieve the DB path and the attachment directory path. * uses the resul to retrieve the DB path and the attachment directory path.
* </p> * </p>
* *
* <p> * <p>
* The underlying storage has always been used by K-9. * The underlying storage has always been used by K-9.
* </p> * </p>
@ -333,11 +333,11 @@ public class StorageManager
* and to prevent from cluttering the storage root, the choosen directory * and to prevent from cluttering the storage root, the choosen directory
* will be * will be
* <code>&lt;STORAGE_ROOT&gt;/Android/data/&lt;APPLICATION_PACKAGE_NAME&gt;/files/</code> * <code>&lt;STORAGE_ROOT&gt;/Android/data/&lt;APPLICATION_PACKAGE_NAME&gt;/files/</code>
* *
* <p> * <p>
* The denoted storage is usually a SD card. * The denoted storage is usually a SD card.
* </p> * </p>
* *
* <p> * <p>
* This provider is expected to work on all devices but the returned * This provider is expected to work on all devices but the returned
* underlying storage might not be always available, due to * 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. * Storage provider to allow access the /emmc directory on a HTC Incredible.
* *
* <p> * <p>
* This implementation is experimental and _untested_. * This implementation is experimental and _untested_.
* </p> * </p>
* *
* See http://groups.google.com/group/android-developers/browse_frm/thread/96f15e57150ed173 * See http://groups.google.com/group/android-developers/browse_frm/thread/96f15e57150ed173
* *
* @see FixedStorageProviderBase * @see FixedStorageProviderBase
*/ */
public static class HtcIncredibleStorageProvider extends FixedStorageProviderBase public static class HtcIncredibleStorageProvider extends FixedStorageProviderBase
@ -456,9 +456,9 @@ public class StorageManager
* <p> * <p>
* This implementation is experimental and _untested_. * This implementation is experimental and _untested_.
* </p> * </p>
* *
* See http://groups.google.com/group/android-developers/browse_frm/thread/a1adf7122a75a657 * See http://groups.google.com/group/android-developers/browse_frm/thread/a1adf7122a75a657
* *
* @see FixedStorageProviderBase * @see FixedStorageProviderBase
*/ */
public static class SamsungGalaxySStorageProvider extends FixedStorageProviderBase public static class SamsungGalaxySStorageProvider extends FixedStorageProviderBase
@ -579,10 +579,10 @@ public class StorageManager
/* /*
* 20101113/fiouzy: * 20101113/fiouzy:
* *
* Here is where we define which providers are used, currently we only * Here is where we define which providers are used, currently we only
* allow the internal storage and the regular external storage. * allow the internal storage and the regular external storage.
* *
* HTC Incredible storage and Samsung Galaxy S are omitted on purpose * HTC Incredible storage and Samsung Galaxy S are omitted on purpose
* (they're experimental and I don't have those devices to test). * (they're experimental and I don't have those devices to test).
* *