am 0dd9f4de: MediaScanner: Do not update the file path when updating records already in the database

* commit '0dd9f4de3ed681e83bd79ddcd4fd463093d11ed3':
  MediaScanner: Do not update the file path when updating records already in the database
This commit is contained in:
Mike Lockwood
2011-01-12 14:30:53 -08:00
committed by Android Git Automerger

View File

@@ -789,6 +789,9 @@ public class MediaScanner
} else {
// updated file
result = ContentUris.withAppendedId(tableUri, rowId);
// path should never change, and we want to avoid replacing mixed cased paths
// with squashed lower case paths
values.remove(MediaStore.MediaColumns.DATA);
mMediaProvider.update(result, values, null, null);
}
if (mProcessGenres && mGenre != null) {