|
@@ -442,7 +442,7 @@ public class FileContentProvider extends ContentProvider {
|
|
|
private int update(SQLiteDatabase db, Uri uri, ContentValues values, String selection, String[] selectionArgs) {
|
|
|
switch (mUriMatcher.match(uri)) {
|
|
|
case DIRECTORY:
|
|
|
- return updateFolderSize(db, selectionArgs[0]);
|
|
|
+ return 0; //updateFolderSize(db, selectionArgs[0]);
|
|
|
case SHARES:
|
|
|
return db.update(ProviderTableMeta.OCSHARES_TABLE_NAME, values, selection, selectionArgs);
|
|
|
default:
|
|
@@ -450,7 +450,7 @@ public class FileContentProvider extends ContentProvider {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+ /*
|
|
|
private int updateFolderSize(SQLiteDatabase db, String folderId) {
|
|
|
int count = 0;
|
|
|
String [] whereArgs = new String[] { folderId };
|
|
@@ -501,7 +501,7 @@ public class FileContentProvider extends ContentProvider {
|
|
|
}
|
|
|
return count;
|
|
|
}
|
|
|
-
|
|
|
+*/
|
|
|
|
|
|
@Override
|
|
|
public ContentProviderResult[] applyBatch (ArrayList<ContentProviderOperation> operations) throws OperationApplicationException {
|