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

Geoffrey Métais geoffrey.metais at gmail.com
Fri Dec 5 16:13:56 CET 2014


This sorting will only by used while loading an album or appending it in
current playlist.

I would prefer you to not sort in getLocations, but call Collections.sort
in handleContextItemSelected and in OnItemClickListener for album in
AudioBrowserFragment.

This should prevent adding too much code in AudioBrowserListAdapter and
computing useless checks/sorts.

Otherwise it's all good.

On Fri, Dec 5, 2014 at 2:50 AM, Enno G. <mrmaffen at googlemail.com> wrote:

> 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
>
> _______________________________________________
> Android mailing list
> Android at videolan.org
> https://mailman.videolan.org/listinfo/android
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/android/attachments/20141205/0aff255c/attachment.html>


More information about the Android mailing list