X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/dc8c32fb3f7033d6fdfa7e1b64eaa77884da678a..121a462bdf08707c2518a9c4a438d8d723c2fbf5:/src/eu/alefzero/owncloud/syncadapter/FileSyncService.java diff --git a/src/eu/alefzero/owncloud/syncadapter/FileSyncService.java b/src/eu/alefzero/owncloud/syncadapter/FileSyncService.java index ed8480ef..6ab23db1 100644 --- a/src/eu/alefzero/owncloud/syncadapter/FileSyncService.java +++ b/src/eu/alefzero/owncloud/syncadapter/FileSyncService.java @@ -22,25 +22,21 @@ 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 { - private static final Object syncAdapterLock = new Object(); - private static AbstractOwnCloudSyncAdapter concretSyncAdapter = null; + 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"; /* * {@inheritDoc} */ @Override public void onCreate() { - synchronized (syncAdapterLock) { - if (concretSyncAdapter == null) { - concretSyncAdapter = new FileSyncAdapter(getApplicationContext(), true); - } - } } /* @@ -48,6 +44,6 @@ public class FileSyncService extends Service { */ @Override public IBinder onBind(Intent intent) { - return concretSyncAdapter.getSyncAdapterBinder(); + return new FileSyncAdapter(getApplicationContext(), true).getSyncAdapterBinder(); } }