Fixed: Rotating screen after viewing a file would return you to the
[pub/Android/ownCloud.git] / src / eu / alefzero / owncloud / syncadapter / FileSyncService.java
index ed8480e..e4112d7 100644 (file)
@@ -22,12 +22,16 @@ import android.content.Intent;
 import android.os.IBinder;\r
 \r
 /**\r
- * Background service for syncing files to our\r
- * local Database\r
+ * Background service for syncing files to our local Database\r
+ * \r
  * @author Bartek Przybylski\r
- *\r
+ * \r
  */\r
 public class FileSyncService extends Service {\r
+    public static final String SYNC_MESSAGE = "eu.alefzero.owncloud.files.ACCOUNT_SYNC";\r
+    public static final String IN_PROGRESS = "sync_in_progress";\r
+    public static final String ACCOUNT_NAME = "account_name";\r
+\r
     private static final Object syncAdapterLock = new Object();\r
     private static AbstractOwnCloudSyncAdapter concretSyncAdapter = null;\r
 \r
@@ -37,9 +41,9 @@ public class FileSyncService extends Service {
     @Override\r
     public void onCreate() {\r
         synchronized (syncAdapterLock) {\r
-            if (concretSyncAdapter == null) {\r
-                concretSyncAdapter = new FileSyncAdapter(getApplicationContext(), true);\r
-            }\r
+            if (concretSyncAdapter == null)\r
+                concretSyncAdapter = new FileSyncAdapter(\r
+                        getApplicationContext(), true);\r
         }\r
     }\r
 \r