Browse Source

Fix saveSharesDB, duplicated rows

masensio 9 years ago
parent
commit
fdcf0ebbc8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/com/owncloud/android/datamodel/FileDataStorageManager.java

+ 2 - 2
src/com/owncloud/android/datamodel/FileDataStorageManager.java

@@ -1348,9 +1348,9 @@ public class FileDataStorageManager {
         String filePath = "";
         for (OCShare share: shares) {
             if (filePath != share.getPath()){
+                filePath = share.getPath();
                 resetShareFlagInAFile(filePath);
                 operations = prepareRemoveSharesInFile(filePath, operations);
-                filePath = share.getPath();
             }
         }
 
@@ -1453,7 +1453,7 @@ public class FileDataStorageManager {
                 Log_OC.e(TAG, "Exception in batch of operations " + e.getMessage());
 
             } catch (RemoteException e) {
-                Log_OC.e(TAG, "Exception in batch of operations  " + e.getMessage());
+
             }
         }