From 0a2dbc468809f779edf9190bdcf18d8d4be4c9d9 Mon Sep 17 00:00:00 2001 From: John Zhen Mo Date: Wed, 16 May 2018 18:08:19 -0700 Subject: [PATCH] -Fixed playlist fragment infinite update cycle. -Updated Room DB version to 1.1.0. --- .../newpipe/fragments/list/playlist/PlaylistFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/fragments/list/playlist/PlaylistFragment.java b/app/src/main/java/org/schabi/newpipe/fragments/list/playlist/PlaylistFragment.java index 161bca694..ca732aa2c 100644 --- a/app/src/main/java/org/schabi/newpipe/fragments/list/playlist/PlaylistFragment.java +++ b/app/src/main/java/org/schabi/newpipe/fragments/list/playlist/PlaylistFragment.java @@ -289,7 +289,6 @@ public class PlaylistFragment extends BaseListInfoFragment { remotePlaylistManager.getPlaylist(result) .flatMap(lists -> getUpdateProcessor(lists, result), (lists, id) -> lists) .onBackpressureLatest() - .flatMap(lists -> getUpdateProcessor(lists, result), (lists, id) -> lists) .observeOn(AndroidSchedulers.mainThread()) .subscribe(getPlaylistBookmarkSubscriber()); @@ -355,6 +354,7 @@ public class PlaylistFragment extends BaseListInfoFragment { final PlaylistRemoteEntity playlistEntity = playlists.get(0); if (playlistEntity.isIdenticalTo(result)) return noItemToUpdate; + return remotePlaylistManager.onUpdate(playlists.get(0).getUid(), result).toFlowable(); }