diff options
author | Shalika Pathirathna <shalika.x.pathirathna@sony.com> | 2019-04-16 14:35:33 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-04-16 14:35:33 -0700 |
commit | 91c705de1953ba5528bfbde4064698dc9ed834fa (patch) | |
tree | f87fda47dd0924d97e8dd155bec829a9d0795ab5 | |
parent | a65811d09d7043810d062daca4449f236663f026 (diff) | |
parent | 2ec69519ac90437f4e84d0f5c79e3c0f8561f84e (diff) |
Merge "Fix preview image overlaps a call button during video call" am: 33cc4999be
am: 2ec69519ac
Change-Id: I3f6c2b85aacce4e5b068df65a1b137888e6b4e70
-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()); } } |