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

Commit 1a8e41a3 authored by Tomasz Rostanski's avatar Tomasz Rostanski
Browse files

Always set buffers orientation when setting the qcom camera preview window

Fixes the rotated preview on TouchPad

Change-Id: I9763dff8c06f445d905b9f21fb5f899995f816ed
parent 5a3af2c1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -588,6 +588,9 @@ status_t CameraService::Client::setPreviewWindow(const sp<IBinder>& binder,
#ifdef QCOM_HARDWARE
#ifndef NO_UPDATE_PREVIEW
    } else {
        if (window != 0) {
            native_window_set_buffers_transform(window.get(), mOrientation);
        }
        result = mHardware->setPreviewWindow(window);
#endif
#endif