summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Keith <javelinanddart@gmail.com>2019-02-07 06:56:51 -0600
committerPaul Keith <javelinanddart@gmail.com>2019-02-07 07:00:52 -0600
commit36ab5756214efd7519fc0af04a5fdca8dfdd312f (patch)
tree99f0eda0e85738e2444f7799c18a0ece86b38c6e
parentd4eb8a8ee932d008960992a7721d4c36eab1dfa4 (diff)
downloadandroid_hardware_lineage_livedisplay-36ab5756214efd7519fc0af04a5fdca8dfdd312f.tar.gz
android_hardware_lineage_livedisplay-36ab5756214efd7519fc0af04a5fdca8dfdd312f.tar.bz2
android_hardware_lineage_livedisplay-36ab5756214efd7519fc0af04a5fdca8dfdd312f.zip
livedisplay: sdm: Fix isSupported() checks
* Remove check for ab->isSupported() to check if the backend is up because ab->isSupported() returns the value of a prop, so checking it to see if the backend is up might cause false positives here Change-Id: I3674fea55ab96654c51c71f356bcc91585f83af7
-rw-r--r--sdm/service.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdm/service.cpp b/sdm/service.cpp
index 527a761..ac7ee5c 100644
--- a/sdm/service.cpp
+++ b/sdm/service.cpp
@@ -118,7 +118,7 @@ int main() {
goto shutdown;
}
- if (!ab->isSupported() && !dm->isSupported() && !pa->isSupported()) {
+ if (!dm->isSupported() && !pa->isSupported()) {
// Backend isn't ready yet, so restart and try again
goto shutdown;
}