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

Commit 42803753 authored by Tom Briden's avatar Tom Briden
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 a1844632
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -644,6 +644,7 @@ void HWComposer::eventControl(int disp, int event, int enabled) {
            break;
        case EVENT_ORIENTATION:
            // Orientation event
            if (hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_0))
              err = mHwc->eventControl(mHwc, disp, event, enabled);
            break;
        default: