fix several issues caused by the use of loaders for the music views
ClosedPublic

Authored by mgallien on May 17 2018, 7:59 PM.

Diff Detail

Repository
R255 Elisa
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
mgallien requested review of this revision.May 17 2018, 7:59 PM
mgallien created this revision.
astippich requested changes to this revision.May 17 2018, 8:27 PM

Fixes the described issue, but navigation from an album to the corresponding artist still does not work

This revision now requires changes to proceed.May 17 2018, 8:27 PM
mgallien planned changes to this revision.May 17 2018, 8:53 PM

Thanks, I had not noticed this problem.

mgallien updated this revision to Diff 34584.May 21 2018, 4:06 PM
  • mainly fix navigation between the different views
mgallien retitled this revision from fix several issued caused by the use of loaders for the music views to [WIP] fix several issues caused by the use of loaders for the music views.May 21 2018, 4:09 PM
mgallien edited the summary of this revision. (Show Details)
  • mainly fix navigation between the different views

The navigation in the Artists view and it s subviews is still not finished.

mgallien updated this revision to Diff 34669.May 22 2018, 7:46 PM
  • ViewManager is reponsible of pushing views and poping views
  • when no views is shown, ensure we unload them all

should be working as before but with the loaders and more future proof

I have been fixing the bug this way to provide a way to navigate to any views
to allow implementing the ideas around navigation from the context view (i.e.
the view shown when the playlist is expanded)

mgallien retitled this revision from [WIP] fix several issues caused by the use of loaders for the music views to fix several issues caused by the use of loaders for the music views.May 22 2018, 7:46 PM
mgallien added a subscriber: januz.

Did a quick test going back and forth from albums to artists and works great

astippich requested changes to this revision.May 24 2018, 7:15 PM

the button in the album view accessed via the artist view is still not working properly.

For the future, I think the right way to do would be to only use one stackview for all views, this would remove the need for loaders. it would also allow true back and forward navigation between the views.

This revision now requires changes to proceed.May 24 2018, 7:15 PM
This revision was not accepted when it landed; it landed in state Needs Revision.May 27 2018, 8:43 PM
This revision was automatically updated to reflect the committed changes.
mgallien reopened this revision.May 31 2018, 3:34 PM

In fact, it has not landed in master. Please review it.

I get errors "localArtists not defined" when using the display artist button

mgallien updated this revision to Diff 35287.May 31 2018, 8:11 PM
  • mainly fix navigation between the different views
  • ViewManager is reponsible of pushing views and poping views
  • when no views is shown, ensure we unload them all
  • fix warnings when switching to an artist from one album
astippich accepted this revision.May 31 2018, 8:49 PM
This revision is now accepted and ready to land.May 31 2018, 8:49 PM
This revision was automatically updated to reflect the committed changes.