diff options
author | Shalika Pathirathna <shalika.x.pathirathna@sony.com> | 2019-04-16 14:15:16 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-04-16 14:15:16 -0700 |
commit | 2ec69519ac90437f4e84d0f5c79e3c0f8561f84e (patch) | |
tree | f87fda47dd0924d97e8dd155bec829a9d0795ab5 | |
parent | d8a4d83a8882d713accca7824c28e4ff4568d112 (diff) | |
parent | 33cc4999be238bb459ace79b131e35890ff92eae (diff) |
Merge "Fix preview image overlaps a call button during video call"
am: 33cc4999be
Change-Id: I1c68639b40fedde8b913c5e510e758b9d5493ea3
-rw-r--r-- | java/com/android/incallui/video/impl/VideoCallFragment.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/java/com/android/incallui/video/impl/VideoCallFragment.java b/java/com/android/incallui/video/impl/VideoCallFragment.java index 11b80ceb9..901facb01 100644 --- a/java/com/android/incallui/video/impl/VideoCallFragment.java +++ b/java/com/android/incallui/video/impl/VideoCallFragment.java @@ -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()); } } |