samsung: hidl: power: fixup setInteractive while display is on
authorJan Altensen <info@stricted.net>
Fri, 27 Mar 2020 15:40:28 +0000 (16:40 +0100)
committerJan Altensen <info@stricted.net>
Thu, 9 Apr 2020 14:40:10 +0000 (16:40 +0200)
Change-Id: I5cdf542650fa3baf416d5a1cb88cd7034efb407f

hidl/power/Power.cpp

index 721dbda26c5703c4ff2dfa878fb6347e1928c37b..b8418f1789ac54e8eea099225c48f1fe72b3e11b 100644 (file)
@@ -59,7 +59,7 @@ Return<void> Power::setInteractive(bool interactive) {
         if (panel_brightness > 0) {
             LOG(VERBOSE) << "Moving to non-interactive state, but screen is still on,"
                          << "not disabling input devices";
-            return Void();
+            goto out;
         }
     }