Fix some MDLang issues
This commit is contained in:
@@ -133,7 +133,10 @@ internal class ExtensionInstaller(private val context: Context) {
|
||||
emit(downloadStatus)
|
||||
|
||||
// Stop polling when the download fails or finishes
|
||||
if (downloadStatus == DownloadManager.STATUS_SUCCESSFUL || downloadStatus == DownloadManager.STATUS_FAILED) {
|
||||
if (
|
||||
downloadStatus == DownloadManager.STATUS_SUCCESSFUL ||
|
||||
downloadStatus == DownloadManager.STATUS_FAILED
|
||||
) {
|
||||
return@flow
|
||||
}
|
||||
|
||||
|
||||
@@ -53,6 +53,9 @@ class AndroidSourceManager(
|
||||
private val sourceRepository: StubSourceRepository,
|
||||
) : SourceManager {
|
||||
|
||||
private val _isInitialized = MutableStateFlow(false)
|
||||
override val isInitialized: StateFlow<Boolean> = _isInitialized.asStateFlow()
|
||||
|
||||
private val downloadManager: DownloadManager by injectLazy()
|
||||
|
||||
private val scope = CoroutineScope(Job() + Dispatchers.IO)
|
||||
@@ -189,9 +192,6 @@ class AndroidSourceManager(
|
||||
}
|
||||
|
||||
// SY -->
|
||||
private val _isInitialized = MutableStateFlow(false)
|
||||
override val isInitialized: StateFlow<Boolean> = _isInitialized.asStateFlow()
|
||||
|
||||
override fun getVisibleOnlineSources() = sourcesMapFlow.value.values
|
||||
.filterIsInstance<HttpSource>()
|
||||
.filter {
|
||||
|
||||
Reference in New Issue
Block a user