补充了DataUtil的注释

pull/3/head
KL.chh 2 years ago
parent 97f34ceb9c
commit 4fdf7ef6e0

@ -91,6 +91,9 @@ public class DataUtils {
resolver.update(ContentUris.withAppendedId(Notes.CONTENT_NOTE_URI, id), values, null, null);
}
/**
*
*/
public static boolean batchMoveToFolder(ContentResolver resolver, HashSet<Long> ids,
long folderId) {
if (ids == null) {
@ -106,7 +109,7 @@ public class DataUtils {
builder.withValue(NoteColumns.LOCAL_MODIFIED, 1);
operationList.add(builder.build());
}
//异常捕获
try {
ContentProviderResult[] results = resolver.applyBatch(Notes.AUTHORITY, operationList);
if (results == null || results.length == 0 || results[0] == null) {

Loading…
Cancel
Save