Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 600809ea authored by Peter Kalauskas's avatar Peter Kalauskas
Browse files

Convert LazyServiceRegistrar usage to singleton

Test: lshal
Bug: 139376253
Change-Id: I8a407d84f1a5b51309cf4306cf1beab4ed0c7df4
parent 2afe3aca
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -46,8 +46,8 @@ int main() {
    android::sp<ITuner> service = new Tuner();
    android::status_t status;
    if (kLazyService) {
        auto serviceRegistrar = std::make_shared<LazyServiceRegistrar>();
        status = serviceRegistrar->registerService(service);
        auto serviceRegistrar = LazyServiceRegistrar::getInstance();
        status = serviceRegistrar.registerService(service);
    } else {
        status = service->registerAsService();
    }