← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1511073] Re: removeSource and insertSource needs to maintain currentIndex correctly

 

This bug was fixed in the package media-hub
4.0.0+15.04.20151118.1-0ubuntu1 in https://launchpad.net/~ci-train-ppa-
service/+archive/ubuntu/stable-phone-overlay

---------------

media-hub (4.0.0+15.04.20151118.1-0ubuntu1) vivid; urgency=medium

  [ Jim Hodapp ]
  * Added move_track and various fixes for TrackList.
  * Major bump for new TrackList API changes.

  [ Alfonso Sanchez-Beato ]
  * Make sure our iterator for the current track points to the right
    place when (un)shuffling (LP #1510219). Fix crash when client tries
    to set the player for a non-existing key. Do not add empty URIs to
    the list (LP: #1511029). (LP: #1511073, #1511385, #1510219,
    #1510227, #1511029)

 -- Jim Hodapp <ci-train-bot@xxxxxxxxxxxxx>  Wed, 18 Nov 2015 18:36:18
+0000


** Changed in: media-hub (Ubuntu RTM)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to qtubuntu-media in Ubuntu.
https://bugs.launchpad.net/bugs/1511073

Title:
  removeSource and insertSource needs to maintain currentIndex correctly

Status in Canonical System Image:
  In Progress
Status in media-hub package in Ubuntu:
  Triaged
Status in qtubuntu-media package in Ubuntu:
  Triaged
Status in media-hub package in Ubuntu RTM:
  Fix Released
Status in qtubuntu-media package in Ubuntu RTM:
  Fix Released

Bug description:
  The currentIndex needs to be maintained correctly when performing {remove,insert}Source, I believe there are the following cases that need to be taken into account:
  - If removeSource is for an index less than the currentIndex then the currentIndex needs to be decremented.
  - If removeSource is for the same index as currentIndex then next() should be called
  - If insertSource is for an index less than or equal to the currentIndex then the currentIndex needs to be incremented

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1511073/+subscriptions


References