← Back to team overview

ubuntu-sdk-bugs team mailing list archive

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

 

** Also affects: media-hub (Ubuntu RTM)
   Importance: Undecided
       Status: New

** Changed in: media-hub (Ubuntu RTM)
       Status: New => Triaged

** Changed in: media-hub (Ubuntu)
       Status: Confirmed => Triaged

** Changed in: media-hub (Ubuntu RTM)
       Status: Triaged => In Progress

** Changed in: media-hub (Ubuntu RTM)
   Importance: Undecided => Critical

** Changed in: media-hub (Ubuntu)
   Importance: Undecided => Critical

** Changed in: media-hub (Ubuntu RTM)
     Assignee: (unassigned) => Alfonso Sanchez-Beato (alfonsosanchezbeato)

** Changed in: qtubuntu-media (Ubuntu)
     Assignee: (unassigned) => Alfonso Sanchez-Beato (alfonsosanchezbeato)

** Branch linked: lp:~phablet-team/qtubuntu-media/bg-playlist-fixes

-- 
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:
  In Progress
Status in qtubuntu-media package in Ubuntu RTM:
  In Progress

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