Skip to content

Commit

Permalink
Code grooming
Browse files Browse the repository at this point in the history
  • Loading branch information
Nain57 committed Oct 20, 2024
1 parent 11d0ef8 commit 899c84e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ internal class ScenarioDataSource(
suspend fun getScenario(scenarioId: Long): ScenarioWithEvents? =
currentDatabase.value.scenarioDao().getScenario(scenarioId)

suspend fun getScenarioFlow(scenarioId: Long): Flow<ScenarioWithEvents?> =
fun getScenarioFlow(scenarioId: Long): Flow<ScenarioWithEvents?> =
scenarioDaoFlow.flatMapLatest { it.getScenarioFlow(scenarioId) }

suspend fun getImageEvents(scenarioId: Long): List<CompleteEventEntity> =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ internal fun BaseOverlay.showActionCopyDialog(configurator: ActionConfigurator)
)
}

internal fun BaseOverlay.showActionConfigDialog(viewModel: ActionConfigurator, action: Action) {
viewModel.startActionEdition(action)
internal fun BaseOverlay.showActionConfigDialog(configurator: ActionConfigurator, action: Action) {
configurator.startActionEdition(action)

val actionConfigDialogListener: OnActionConfigCompleteListener by lazy {
object : OnActionConfigCompleteListener {
override fun onConfirmClicked() { viewModel.upsertEditedAction() }
override fun onDeleteClicked() { viewModel.removeEditedAction() }
override fun onDismissClicked() { viewModel.dismissEditedAction() }
override fun onConfirmClicked() { configurator.upsertEditedAction() }
override fun onDeleteClicked() { configurator.removeEditedAction() }
override fun onDismissClicked() { configurator.dismissEditedAction() }
}
}

Expand Down

0 comments on commit 899c84e

Please sign in to comment.