Skip to content

Commit

Permalink
Expand lifecycle of save tasker. Fix editing RSS media source doesn't…
Browse files Browse the repository at this point in the history
… work.
  • Loading branch information
StageGuard committed Dec 21, 2024
1 parent a58682d commit f1a5804
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,11 @@ class EditRssMediaSourceViewModel(
) ?: RssMediaSourceArguments.Default
}
}

private val saveTasker = MonoTasker(backgroundScope)

val state: Flow<EditRssMediaSourceState> = this.instanceId.transformLatest { instanceId ->
coroutineScope {
val saveTasker = MonoTasker(this)
val arguments = mutableStateOf<RssMediaSourceArguments?>(null)
val allowEdit = mutableStateOf(false)
launch {
Expand Down

0 comments on commit f1a5804

Please sign in to comment.