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

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

Merge "PowerManagerService: call surfaceflinger blank and unblank through binder"

parents da144605 dccb2c16
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -177,12 +177,15 @@ static void nativeReleaseWakeLock(JNIEnv *env, jobject clazz, jstring idObj) {
}

static int nativeSetScreenState(JNIEnv *env, jobject clazz, jboolean on) {
    sp<ISurfaceComposer> s(ComposerService::getComposerService());
    if (on) {
        autosuspend_disable();
        if (gPowerModule) {
            gPowerModule->setInteractive(gPowerModule, true);
        }
        s->unblank();
    } else {
        s->blank();
        if (gPowerModule) {
            gPowerModule->setInteractive(gPowerModule, false);
        }