[Android] Patch: Read tracknumber metadata to sort album's tracklist

Enno G. mrmaffen at googlemail.com
Fri Dec 5 02:50:34 CET 2014


Hey,

setting a default number for the field mTrackNumber in Media.java wouldn't
change anything. Setting an empty String in TrackInfo.java is wrong in my
opinion.
So I just added an "if (empty || null)"-check, so that the
NumberFormatException is only thrown if the String is non-null, non-empty
and not parsable.

Greets
Enno
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/android/attachments/20141205/15bba4ad/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: handle_tracknumbers.patch
Type: text/x-patch
Size: 16879 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/android/attachments/20141205/15bba4ad/attachment-0001.bin>


More information about the Android mailing list