Ver código fonte

Fixed showing error if cache is empty and there is no internet connection

Vadik Sirekanyan 5 anos atrás
pai
commit
9d79951169

+ 1 - 1
app/src/main/java/com/sirekanyan/knigopis/repository/CommonRepository.kt

@@ -22,7 +22,7 @@ abstract class CommonRepository<T>(private val networkChecker: NetworkChecker) {
                     .toMaybe()
             )
         } else {
-            findCached().toFlowable()
+            findCached().toSingle().toFlowable()
         }
 
 }