Parcourir la source

Fixed bad synchronization of files removed from another client; checked that condition removed is not necessary in any case

David A. Velasco il y a 12 ans
Parent
commit
ba5785e09f

+ 1 - 1
AndroidManifest.xml

@@ -18,7 +18,7 @@
  -->
 <manifest package="eu.alefzero.owncloud"
     android:versionCode="1"
-    android:versionName="0.1.181B" xmlns:android="http://schemas.android.com/apk/res/android">
+    android:versionName="0.1.182B" xmlns:android="http://schemas.android.com/apk/res/android">
 
     <uses-permission android:name="android.permission.GET_ACCOUNTS" />
     <uses-permission android:name="android.permission.USE_CREDENTIALS" />

+ 1 - 1
src/eu/alefzero/owncloud/syncadapter/FileSyncAdapter.java

@@ -206,7 +206,7 @@ public class FileSyncAdapter extends AbstractOwnCloudSyncAdapter {
             OCFile file;
             for (int i=0; i < files.size(); ) {
                 file = files.get(i);
-                if (file.getLastSyncDate() != mCurrentSyncTime && file.getLastSyncDate() != 0) {
+                if (file.getLastSyncDate() != mCurrentSyncTime) {
                     getStorageManager().removeFile(file);
                     files.remove(i);
                 } else {