Updates playlist editor with Add, Copy/Clone and Delete channel

functionality
This commit is contained in:
denny
2016-01-24 10:31:31 -05:00
parent 61f68c08e8
commit da924e8b3a
7 changed files with 337 additions and 68 deletions

View File

@@ -97,6 +97,9 @@ public class PlaylistManager implements ChannelEventListener
*/
private void transferPlaylistToModels()
{
//TODO: delete the playlist after we've loaded it, since the models will have
//all of the data
mPlaylistLoading = true;
mChannelModel.addChannels( mPlaylist.getChannels() );
@@ -167,6 +170,10 @@ public class PlaylistManager implements ChannelEventListener
public void save()
{
//TODO: recreate the playlist and load values from each of the models
mPlaylist.setChannels( mChannelModel.getChannels() );
JAXBContext context = null;
SystemProperties props = SystemProperties.getInstance();