X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/fae44486b9545bfb2a49ded9a0c3fd550fd18549..a032bdeebc51a6e81d1bd5c558944f96fc55eacb:/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 7fa4574a..5396f582 100644 --- a/src/eu/alefzero/owncloud/syncadapter/FileSyncService.java +++ b/src/eu/alefzero/owncloud/syncadapter/FileSyncService.java @@ -22,35 +22,29 @@ 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; + public static final String SYNC_MESSAGE = "ACCOUNT_SYNC"; + public static final String SYNC_FOLDER_REMOTE_PATH = "SYNC_FOLDER_REMOTE_PATH"; + 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); + /* + * {@inheritDoc} + */ + @Override + public void onCreate() { } - } - /* - * {@inheritDoc} - */ - @Override - public IBinder onBind(Intent intent) { - return concretSyncAdapter.getSyncAdapterBinder(); - } + /* + * {@inheritDoc} + */ + @Override + public IBinder onBind(Intent intent) { + return new FileSyncAdapter(getApplicationContext(), true).getSyncAdapterBinder(); + } }