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

Commit 2ec69519 authored by Shalika Pathirathna's avatar Shalika Pathirathna Committed by android-build-merger
Browse files

Merge "Fix preview image overlaps a call button during video call"

am: 33cc4999

Change-Id: I1c68639b40fedde8b913c5e510e758b9d5493ea3
parents d8a4d83a 33cc4999
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -541,13 +541,13 @@ public class VideoCallFragment extends Fragment
      return new Point();
    }
    if (isLandscape()) {
      int stableInsetEnd =
      int systemWindowInsetEnd =
          getView().getLayoutDirection() == View.LAYOUT_DIRECTION_RTL
              ? getView().getRootWindowInsets().getStableInsetLeft()
              : -getView().getRootWindowInsets().getStableInsetRight();
      return new Point(stableInsetEnd, 0);
              ? getView().getRootWindowInsets().getSystemWindowInsetLeft()
              : -getView().getRootWindowInsets().getSystemWindowInsetRight();
      return new Point(systemWindowInsetEnd, 0);
    } else {
      return new Point(0, -getView().getRootWindowInsets().getStableInsetBottom());
      return new Point(0, -getView().getRootWindowInsets().getSystemWindowInsetBottom());
    }
  }