From 61b2b2a55e400ce46542147e777f89724796c4e7 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Mon, 15 Sep 2014 16:23:35 -0700 Subject: Move createBookmark to use EntryInstanceUpdater --- src/github/daneren2005/dsub/fragments/NowPlayingFragment.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/github') diff --git a/src/github/daneren2005/dsub/fragments/NowPlayingFragment.java b/src/github/daneren2005/dsub/fragments/NowPlayingFragment.java index a957c7f3..67bc245e 100644 --- a/src/github/daneren2005/dsub/fragments/NowPlayingFragment.java +++ b/src/github/daneren2005/dsub/fragments/NowPlayingFragment.java @@ -1407,10 +1407,12 @@ public class NowPlayingFragment extends SubsonicFragment implements OnGestureLis MusicService musicService = MusicServiceFactory.getMusicService(context); musicService.createBookmark(currentSong, position, comment, context, null); - Entry find = UpdateView.findEntry(currentSong); - if(find != null && find != currentSong) { - find.setBookmark(new Bookmark(position)); - } + new EntryInstanceUpdater(currentSong) { + @Override + public void updater(Entry found) { + found.setBookmark(new Bookmark(position)); + } + }.execute(); return null; } -- cgit v1.2.3