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

Commit 9934fc61 authored by Tom Briden's avatar Tom Briden Committed by Ricardo Cerqueira
Browse files

surfaceflinger: don't handle EVENT_ORIENTATION when !HWC_DEVICE_API_VERSION_1_0

a1844632 causes segfault on boot for the enrc2b (and probably others), this fixes it.

Change-Id: Ic4a7a05b44c8cc44a0d25c56def4acdf5b0939df
parent f7b066c6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -628,7 +628,8 @@ void HWComposer::eventControl(int disp, int event, int enabled) {
            break;
        case EVENT_ORIENTATION:
            // Orientation event
            err = mHwc->eventControl(mHwc, disp, event, enabled);
            if (hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_0))
                err = hwcEventControl(mHwc, disp, event, enabled);
            break;
        default:
            ALOGW("eventControl got unexpected event %d (disp=%d en=%d)",