Merge "Fix default ring/alarm/notification insertion"

This commit is contained in:
Marco Nelissen
2012-12-03 15:39:42 -08:00
committed by Android (Google) Code Review

View File

@@ -958,6 +958,7 @@ public class MediaScanner
// If the rowId of the inserted file is needed, it gets inserted immediately,
// bypassing the bulk inserter.
if (inserter == null || needToSetSettings) {
inserter.flushAll();
result = mMediaProvider.insert(tableUri, values);
} else if (entry.mFormat == MtpConstants.FORMAT_ASSOCIATION) {
inserter.insertwithPriority(tableUri, values);