summaryrefslogtreecommitdiffstats
path: root/livedisplay/1.0/default/service.cpp
diff options
context:
space:
mode:
authorEthan Chen <intervigil@gmail.com>2018-06-14 22:50:47 -0700
committerEthan Chen <intervigil@gmail.com>2018-06-14 22:57:05 -0700
commitcfd7b999dd3f3566ae5b728d4e83af9b058e7b92 (patch)
tree898e5f2fe62a39bf95c2be973dc96d16fd66a553 /livedisplay/1.0/default/service.cpp
parentd6be15d1b13b647f7f9b4ff91ab2685afa7d1846 (diff)
downloadandroid_hardware_lineage_interfaces-cfd7b999dd3f3566ae5b728d4e83af9b058e7b92.tar.gz
android_hardware_lineage_interfaces-cfd7b999dd3f3566ae5b728d4e83af9b058e7b92.tar.bz2
android_hardware_lineage_interfaces-cfd7b999dd3f3566ae5b728d4e83af9b058e7b92.zip
livedisplay: Don't use a singleton for Color service
* There's really no need for this here, the service only ever creates one instance ever. Change-Id: Iea24bddd51138d9dc729cfeb3acb0204b1098464
Diffstat (limited to 'livedisplay/1.0/default/service.cpp')
-rw-r--r--livedisplay/1.0/default/service.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/livedisplay/1.0/default/service.cpp b/livedisplay/1.0/default/service.cpp
index b8f5cb5..4370545 100644
--- a/livedisplay/1.0/default/service.cpp
+++ b/livedisplay/1.0/default/service.cpp
@@ -39,14 +39,13 @@ using ::vendor::lineage::livedisplay::V1_0::implementation::Color;
int main() {
status_t status;
- android::sp<IColor> service = nullptr;
LOG(INFO) << "LiveDisplay HAL service is starting.";
// The LiveDisplay HAL may communicate to other vendor components via /dev/vndbinder
android::ProcessState::initWithDriver("/dev/vndbinder");
- service = Color::getInstance();
+ android::sp<IColor> service = new Color();
if (service == nullptr) {
LOG(ERROR) << "Can not create an instance of LiveDisplay HAL Iface, exiting.";
goto shutdown;