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

Commit dfde1ea8 authored by Doris Liu's avatar Doris Liu
Browse files

Fix camera preview being squished

Bug: 8585407
Change-Id: Ie9a3a44c58599f4cccfa0017d48749e9883af6cd
parent b6b2d1c4
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -590,6 +590,7 @@ public class PhotoModule
        if (mFocusManager != null) mFocusManager.setPreviewSize(width, height);
        ((CameraScreenNail) mActivity.mCameraScreenNail).setPreviewFrameLayoutSize(
                previewWidth, previewHeight);
        mActivity.notifyScreenNailChanged();
    }

    private void resetExposureCompensation() {
+2 −1
Original line number Diff line number Diff line
@@ -144,7 +144,6 @@ public class PhotoUI implements PieListener,
            }
        }

        mRootView.addOnLayoutChangeListener(mLayoutListener);
    }

    public View getRootView() {
@@ -259,6 +258,7 @@ public class PhotoUI implements PieListener,
        mShutterButton.setImageResource(R.drawable.btn_new_shutter);
        mShutterButton.setOnShutterButtonListener(mController);
        mShutterButton.setVisibility(View.VISIBLE);
        mRootView.addOnLayoutChangeListener(mLayoutListener);
    }

    // called from onResume every other time
@@ -270,6 +270,7 @@ public class PhotoUI implements PieListener,
        if (mMenu != null) {
            mMenu.reloadPreferences();
        }
        mRootView.addOnLayoutChangeListener(mLayoutListener);
    }

    public void initializeZoom(Camera.Parameters params) {