X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/dc8c32fb3f7033d6fdfa7e1b64eaa77884da678a..5f61cb15552eb2fda01716078a9191b88cebf764:/src/eu/alefzero/owncloud/syncadapter/FileSyncService.java?ds=sidebyside diff --git a/src/eu/alefzero/owncloud/syncadapter/FileSyncService.java b/src/eu/alefzero/owncloud/syncadapter/FileSyncService.java index ed8480ef..e4112d7f 100644 --- a/src/eu/alefzero/owncloud/syncadapter/FileSyncService.java +++ b/src/eu/alefzero/owncloud/syncadapter/FileSyncService.java @@ -22,12 +22,16 @@ import android.content.Intent; import android.os.IBinder; /** - * Background service for syncing files to our - * local Database + * Background service for syncing files to our local Database + * * @author Bartek Przybylski - * + * */ public class FileSyncService extends Service { + public static final String SYNC_MESSAGE = "eu.alefzero.owncloud.files.ACCOUNT_SYNC"; + public static final String IN_PROGRESS = "sync_in_progress"; + public static final String ACCOUNT_NAME = "account_name"; + private static final Object syncAdapterLock = new Object(); private static AbstractOwnCloudSyncAdapter concretSyncAdapter = null; @@ -37,9 +41,9 @@ public class FileSyncService extends Service { @Override public void onCreate() { synchronized (syncAdapterLock) { - if (concretSyncAdapter == null) { - concretSyncAdapter = new FileSyncAdapter(getApplicationContext(), true); - } + if (concretSyncAdapter == null) + concretSyncAdapter = new FileSyncAdapter( + getApplicationContext(), true); } }