Fix saveSharesDB, duplicated rows

This commit is contained in:
masensio 2015-10-23 10:20:01 +02:00 committed by David A. Velasco
parent b3dc5f477c
commit fdcf0ebbc8

View file

@ -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());
}
}