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

Commit 54211feb authored by Tyler Gunn's avatar Tyler Gunn
Browse files

Adding missing null-check.

Bug: 19850018
Change-Id: I17e1ac4c91fbf91ce53ab6a111aed854f8e4116e
parent 27b3d401
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -909,6 +909,9 @@ public class VideoCallPresenter extends Presenter<VideoCallPresenter.VideoCallUi
    public void onDeviceOrientationChanged(int orientation) {
        mDeviceOrientation = orientation;
        Point previewDimensions = getUi().getPreviewSize();
        if (previewDimensions == null) {
            return;
        }
        Log.d(this, "onDeviceOrientationChanged: orientation=" + orientation + " size: "
                + previewDimensions);
        changePreviewDimensions(previewDimensions.x, previewDimensions.y);