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

Commit fdb7412a authored by Colin Cross's avatar Colin Cross Committed by Android (Google) Code Review
Browse files

Merge "Don't call into power HAL if it isn't loaded." into jb-dev

parents c2182c67 c814c16b
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -73,9 +73,13 @@ setScreenState(JNIEnv *env, jobject clazz, jboolean on)
{
    if (on) {
        autosuspend_disable();
        if (sPowerModule) {
            sPowerModule->setInteractive(sPowerModule, true);
        }
    } else {
        if (sPowerModule) {
            sPowerModule->setInteractive(sPowerModule, false);
        }
        autosuspend_enable();
    }