diff options
| author | 2010-11-30 09:22:00 -0800 | |
|---|---|---|
| committer | 2010-11-30 09:22:00 -0800 | |
| commit | 84e3916720e430e0d6debfaf5343b8a14fdf1ce4 (patch) | |
| tree | eb7d8db5d798aa8de6e5903884bf3f44ba0d4f8a | |
| parent | 50225445f864cf7dc1884cf25de1eb3c64272f85 (diff) | |
| parent | 7adfd1896c17d734440962c9f8dbe4aad48bcb49 (diff) | |
Merge "MTP: Don't fail in playlist transfer if not all playlist items can be found."
| -rw-r--r-- | media/java/android/media/MtpDatabase.java | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/media/java/android/media/MtpDatabase.java b/media/java/android/media/MtpDatabase.java index 250ec4403d21..03879892799d 100644 --- a/media/java/android/media/MtpDatabase.java +++ b/media/java/android/media/MtpDatabase.java @@ -169,11 +169,6 @@ public class MtpDatabase { // handle abstract playlists separately // they do not exist in the file system so don't use the media scanner here if (format == MtpConstants.FORMAT_ABSTRACT_AV_PLAYLIST) { - // Strip Windows Media Player file extension - if (path.endsWith(".pla")) { - path = path.substring(0, path.length() - 4); - } - // extract name from path String name = path; int lastSlash = name.lastIndexOf('/'); @@ -1005,7 +1000,7 @@ public class MtpDatabase { valuesList[i] = values; } try { - if (count == mMediaProvider.bulkInsert(uri, valuesList)) { + if (mMediaProvider.bulkInsert(uri, valuesList) > 0) { return MtpConstants.RESPONSE_OK; } } catch (RemoteException e) { |