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

Commit 5885a086 authored by Ricardo Cerqueira's avatar Ricardo Cerqueira Committed by Gerrit Code Review
Browse files

Merge "Extend workaround for blackscreen issue." into gingerbread

parents a84cb3f1 1ddcdd17
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2066,10 +2066,12 @@ status_t SurfaceFlinger::turnElectronBeamOff(int32_t mode)
status_t SurfaceFlinger::turnElectronBeamOnImplLocked(int32_t mode)
{
    DisplayHardware& hw(graphicPlane(0).editDisplayHardware());
#ifndef DO_NOT_SET_CAN_DRAW
    if (hw.canDraw()) {
        // we're already on
        return NO_ERROR;
    }
#endif
    if (mode & ISurfaceComposer::eElectronBeamAnimationOn) {
        electronBeamOnAnimationImplLocked();
    }