Merge "Revert "Register VmsPublisheService with VmsClientManager on construction time."" into qt-dev
diff --git a/service/src/com/android/car/VmsPublisherService.java b/service/src/com/android/car/VmsPublisherService.java
index 647b102..3384e3a 100644
--- a/service/src/com/android/car/VmsPublisherService.java
+++ b/service/src/com/android/car/VmsPublisherService.java
@@ -119,14 +119,16 @@
mContext = context;
mClientManager = clientManager;
mBrokerService = brokerService;
+ }
+
+ @Override
+ public void init() {
mClientManager.registerConnectionListener(this);
}
@Override
- public void init() {}
-
- @Override
public void release() {
+ mClientManager.unregisterConnectionListener(this);
mPublisherProxies.values().forEach(PublisherProxy::unregister);
mPublisherProxies.clear();
}