-Fixed playlist fragment infinite update cycle.
-Updated Room DB version to 1.1.0.
This commit is contained in:
parent
0b52f3d43c
commit
eed6ab4fbe
1 changed files with 1 additions and 1 deletions
|
|
@ -289,7 +289,6 @@ public class PlaylistFragment extends BaseListInfoFragment<PlaylistInfo> {
|
||||||
remotePlaylistManager.getPlaylist(result)
|
remotePlaylistManager.getPlaylist(result)
|
||||||
.flatMap(lists -> getUpdateProcessor(lists, result), (lists, id) -> lists)
|
.flatMap(lists -> getUpdateProcessor(lists, result), (lists, id) -> lists)
|
||||||
.onBackpressureLatest()
|
.onBackpressureLatest()
|
||||||
.flatMap(lists -> getUpdateProcessor(lists, result), (lists, id) -> lists)
|
|
||||||
.observeOn(AndroidSchedulers.mainThread())
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
.subscribe(getPlaylistBookmarkSubscriber());
|
.subscribe(getPlaylistBookmarkSubscriber());
|
||||||
|
|
||||||
|
|
@ -355,6 +354,7 @@ public class PlaylistFragment extends BaseListInfoFragment<PlaylistInfo> {
|
||||||
|
|
||||||
final PlaylistRemoteEntity playlistEntity = playlists.get(0);
|
final PlaylistRemoteEntity playlistEntity = playlists.get(0);
|
||||||
if (playlistEntity.isIdenticalTo(result)) return noItemToUpdate;
|
if (playlistEntity.isIdenticalTo(result)) return noItemToUpdate;
|
||||||
|
|
||||||
return remotePlaylistManager.onUpdate(playlists.get(0).getUid(), result).toFlowable();
|
return remotePlaylistManager.onUpdate(playlists.get(0).getUid(), result).toFlowable();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue