summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShalika Pathirathna <shalika.x.pathirathna@sony.com>2019-04-16 16:31:46 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-04-16 16:31:46 -0700
commit6f53dbc5d9b0313286fb14e5d272c7fe09bca4e1 (patch)
treea614ceabe538860a92fd10436fbe1d51cf6af66d
parentad43cb1506155517adfdaaa29fa65548d87be263 (diff)
parent91c705de1953ba5528bfbde4064698dc9ed834fa (diff)
Merge "Fix preview image overlaps a call button during video call" am: 33cc4999be am: 2ec69519ac
am: 91c705de19 Change-Id: I44e2684c301deed8687b69aa4b492bc8766fcc89
-rw-r--r--java/com/android/incallui/video/impl/VideoCallFragment.java10
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());
}
}