Updated build service when created

This commit is contained in:
Akash Yadav
2022-11-03 17:12:32 +05:30
parent 5317dd4802
commit 42eca3e5d9
2 changed files with 2 additions and 2 deletions
@@ -176,7 +176,7 @@ public class EditorActivity extends IDEActivity
public void onServiceConnected(ComponentName name, IBinder service) {
final var buildService = ((GradleBuildService.GradleServiceBinder) service).getService();
LOG.info("Gradle build service has been started...");
Lookup.DEFAULT.register(BuildService.KEY_BUILD_SERVICE, buildService);
Lookup.DEFAULT.update(BuildService.KEY_BUILD_SERVICE, buildService);
buildService
.setEventListener(mBuildEventListener)
.startToolingServer(() -> initializeProject());
@@ -32,6 +32,6 @@ abstract class AbstractView(
protected val attributes = mutableListOf<IAttribute>()
override fun addAttribute(attribute: IAttribute) {
}
}