Merge "MTP: Set correct format for abstract audio playlists"
This commit is contained in:
committed by
Android (Google) Code Review
commit
558cf79929
@@ -184,6 +184,7 @@ public class MtpDatabase {
|
||||
ContentValues values = new ContentValues(1);
|
||||
values.put(Audio.Playlists.DATA, path);
|
||||
values.put(Audio.Playlists.NAME, name);
|
||||
values.put(Files.FileColumns.FORMAT, format);
|
||||
values.put(MediaColumns.MEDIA_SCANNER_NEW_OBJECT_ID, handle);
|
||||
try {
|
||||
Uri uri = mMediaProvider.insert(Audio.Playlists.EXTERNAL_CONTENT_URI, values);
|
||||
|
||||
@@ -624,6 +624,7 @@ MtpResponseCode MtpServer::doSendObjectInfo() {
|
||||
mData.getString(modified); // date modified
|
||||
// keywords follow
|
||||
|
||||
LOGD("name: %s format: %04X\n", (const char *)name, format);
|
||||
time_t modifiedTime;
|
||||
if (!parseDateTime(modified, modifiedTime))
|
||||
modifiedTime = 0;
|
||||
@@ -692,6 +693,7 @@ MtpResponseCode MtpServer::doSendObject() {
|
||||
mfr.offset = 0;
|
||||
mfr.length = mSendObjectFileSize;
|
||||
|
||||
LOGD("receiving %s\n", (const char *)mSendObjectFilePath);
|
||||
// transfer the file
|
||||
ret = ioctl(mFD, MTP_RECEIVE_FILE, (unsigned long)&mfr);
|
||||
close(mfr.fd);
|
||||
|
||||
Reference in New Issue
Block a user