Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Commit 5a4510d

Browse files
authored
refactor: fix editor activity coroutine scope name (#1487)
refactor: fix editor activity coroutine scope name (#1487)
1 parent 26ccb5a commit 5a4510d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

app/src/main/java/com/itsaky/androidide/activities/editor/BaseEditorActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ abstract class BaseEditorActivity :
111111
/**
112112
* [CoroutineScope] for executing tasks in the background.
113113
*/
114-
protected val activityBackroundScope = CoroutineScope(Dispatchers.Default)
114+
protected val activityBackgroundScope = CoroutineScope(Dispatchers.Default)
115115

116116
internal var installationCallback: ApkInstallationSessionCallback? = null
117117

@@ -168,7 +168,7 @@ abstract class BaseEditorActivity :
168168
installationCallback = null
169169

170170
if (isDestroying) {
171-
activityBackroundScope.cancelIfActive("Activity is being destroyed")
171+
activityBackgroundScope.cancelIfActive("Activity is being destroyed")
172172
}
173173
}
174174

app/src/main/java/com/itsaky/androidide/activities/editor/EditorHandlerActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ open class EditorHandlerActivity : ProjectHandlerActivity(), IEditorHandler {
378378
progressConsumer: ((Int, Int) -> Unit)?,
379379
runAfter: (() -> Unit)?
380380
) {
381-
activityBackroundScope.launch {
381+
activityBackgroundScope.launch {
382382
saveAll(notify, requestSync, processResources, progressConsumer)
383383
runAfter?.invoke()
384384
}

app/src/main/java/com/itsaky/androidide/activities/editor/ProjectHandlerActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ abstract class ProjectHandlerActivity : BaseEditorActivity() {
463463
}
464464

465465
manager.cachedInitResult = result
466-
activityBackroundScope.launch(Dispatchers.IO) {
466+
activityBackgroundScope.launch(Dispatchers.IO) {
467467
manager.setupProject()
468468
manager.notifyProjectUpdate()
469469
updateBuildVariants(manager.androidBuildVariants)

0 commit comments

Comments
 (0)