diff options
| author | Ethan Chen <intervigil@gmail.com> | 2018-06-14 22:55:42 -0700 |
|---|---|---|
| committer | Bruno Martins <bgcngm@gmail.com> | 2018-06-15 11:57:49 +0200 |
| commit | 35484bbdd8a2b0826f62b0b14762f33a0c5fad43 (patch) | |
| tree | 2648597042d7b96a67f51f830bd834fd24bb1a8a | |
| parent | af12c6eaf5b2058733138c7ac04e061ff2a283a9 (diff) | |
| download | android_hardware_lineage_interfaces-35484bbdd8a2b0826f62b0b14762f33a0c5fad43.tar.gz android_hardware_lineage_interfaces-35484bbdd8a2b0826f62b0b14762f33a0c5fad43.tar.bz2 android_hardware_lineage_interfaces-35484bbdd8a2b0826f62b0b14762f33a0c5fad43.zip | |
livedisplay: Move initialization of mActiveModeId to constructor
Change-Id: I10540dd635e10bfce68e318116980c462994b871
| -rw-r--r-- | livedisplay/1.0/default/impl/SDM.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/livedisplay/1.0/default/impl/SDM.cpp b/livedisplay/1.0/default/impl/SDM.cpp index 22c199d..cd3c23d 100644 --- a/livedisplay/1.0/default/impl/SDM.cpp +++ b/livedisplay/1.0/default/impl/SDM.cpp @@ -92,7 +92,7 @@ using ::android::OK; using ::android::sp; using ::android::status_t; -SDM::SDM() : mController(nullptr) { +SDM::SDM() : mController(nullptr), mActiveModeId(-1) { } SDM::~SDM() { @@ -110,8 +110,6 @@ status_t SDM::initialize() { return rc; } - mActiveModeId = -1; - if (hasFeature(Feature::DISPLAY_MODES)) { rc = saveInitialDisplayMode(); if (rc != OK) { |
