diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-09-15 16:23:35 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-09-15 16:23:35 -0700 |
commit | 61b2b2a55e400ce46542147e777f89724796c4e7 (patch) | |
tree | b1f9e1e55529f550fa16a80e2e35140fa43bfc60 /src/github | |
parent | 17fed4b120752e736ebae0a1fa3e12bb044c19e4 (diff) | |
download | dsub-61b2b2a55e400ce46542147e777f89724796c4e7.tar.gz dsub-61b2b2a55e400ce46542147e777f89724796c4e7.tar.bz2 dsub-61b2b2a55e400ce46542147e777f89724796c4e7.zip |
Move createBookmark to use EntryInstanceUpdater
Diffstat (limited to 'src/github')
-rw-r--r-- | src/github/daneren2005/dsub/fragments/NowPlayingFragment.java | 10 |
1 files changed, 6 insertions, 4 deletions
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;
}
|