mirror of
https://gitee.com/zhangsken/AndroidIDE.git
synced 2026-10-16 07:49:44 +08:00
refactor: fix editor activity coroutine scope name (#1487)
refactor: fix editor activity coroutine scope name (#1487)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user