refactor: fix editor activity coroutine scope name (#1487)

refactor: fix editor activity coroutine scope name (#1487)
This commit is contained in:
Felipe Teixeira
2023-11-24 12:28:23 -03:00
committed by GitHub
parent 26ccb5a96d
commit 5a4510d50c
3 changed files with 4 additions and 4 deletions
@@ -111,7 +111,7 @@ abstract class BaseEditorActivity :
/**
* [CoroutineScope] for executing tasks in the background.
*/
protected val activityBackroundScope = CoroutineScope(Dispatchers.Default)
protected val activityBackgroundScope = CoroutineScope(Dispatchers.Default)
internal var installationCallback: ApkInstallationSessionCallback? = null
@@ -168,7 +168,7 @@ abstract class BaseEditorActivity :
installationCallback = null
if (isDestroying) {
activityBackroundScope.cancelIfActive("Activity is being destroyed")
activityBackgroundScope.cancelIfActive("Activity is being destroyed")
}
}
@@ -378,7 +378,7 @@ open class EditorHandlerActivity : ProjectHandlerActivity(), IEditorHandler {
progressConsumer: ((Int, Int) -> Unit)?,
runAfter: (() -> Unit)?
) {
activityBackroundScope.launch {
activityBackgroundScope.launch {
saveAll(notify, requestSync, processResources, progressConsumer)
runAfter?.invoke()
}
@@ -463,7 +463,7 @@ abstract class ProjectHandlerActivity : BaseEditorActivity() {
}
manager.cachedInitResult = result
activityBackroundScope.launch(Dispatchers.IO) {
activityBackgroundScope.launch(Dispatchers.IO) {
manager.setupProject()
manager.notifyProjectUpdate()
updateBuildVariants(manager.androidBuildVariants)