From 9cb995c990821dac3c27d7d5b01a535b10b0fa6b Mon Sep 17 00:00:00 2001 From: Akash Yadav Date: Wed, 6 Sep 2023 18:53:13 +0530 Subject: [PATCH] fix: make 'buildServiceConnection' an instance field in ProjectHandlerActivity (#1208) --- .../androidide/activities/editor/ProjectHandlerActivity.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/itsaky/androidide/activities/editor/ProjectHandlerActivity.kt b/app/src/main/java/com/itsaky/androidide/activities/editor/ProjectHandlerActivity.kt index ae2f9bf9d5..8f3368a068 100644 --- a/app/src/main/java/com/itsaky/androidide/activities/editor/ProjectHandlerActivity.kt +++ b/app/src/main/java/com/itsaky/androidide/activities/editor/ProjectHandlerActivity.kt @@ -91,13 +91,12 @@ abstract class ProjectHandlerActivity : BaseEditorActivity() { protected val mBuildEventListener = EditorBuildEventListener() + private val buildServiceConnection = GradleBuildServiceConnnection() + companion object { const val STATE_KEY_FROM_SAVED_INSTANACE = "ide.editor.isFromSavedInstance" const val STATE_KEY_SHOULD_INITIALIZE = "ide.editor.isInitializing" - - @JvmStatic - private val buildServiceConnection = GradleBuildServiceConnnection() } abstract fun doCloseAll(runAfter: () -> Unit)