fix(library): Workaround NPE when querying library by retrying once

REF: https://github.com/sqldelight/sqldelight/issues/4194#issuecomment-2417466333
This commit is contained in:
Ahmad Ansori Palembani 2024-12-03 17:00:41 +07:00
parent 31773876b4
commit 50fecd5350
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -812,7 +812,8 @@ class LibraryPresenter(
private fun getLibraryFlow(): Flow<LibraryData> {
return combine(
getCategories.subscribe(),
getLibraryManga.subscribe(),
// FIXME: Remove retry once a real solution is found
getLibraryManga.subscribe().retry(1),
getPreferencesFlow(),
preferences.removeArticles().changes(),
fetchLibrary