Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5bd7d934 authored by Mike Lockwood's avatar Mike Lockwood Committed by Android (Google) Code Review
Browse files

Merge "MediaScanner: No longer delete playlist files that have no valid entries"

parents 87212c19 eb46d060
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -1494,17 +1494,6 @@ public class MediaScanner
        } else if (fileType == MediaFile.FILE_TYPE_WPL) {
            processWplPlayList(path, playListDirectory, membersUri);
        }

        Cursor cursor = mMediaProvider.query(membersUri, PLAYLIST_MEMBERS_PROJECTION, null,
                null, null);
        try {
            if (cursor == null || cursor.getCount() == 0) {
                Log.d(TAG, "playlist is empty - deleting");
                mMediaProvider.delete(uri, null, null);
            }
        } finally {
            if (cursor != null) cursor.close();
        }
    }

    private void processPlayLists() throws RemoteException {