summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2019-04-16 20:30:35 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-04-16 20:30:35 +0000
commit33cc4999be238bb459ace79b131e35890ff92eae (patch)
treef87fda47dd0924d97e8dd155bec829a9d0795ab5 /java
parent381dffd9a95b5c8e3d01a91c676dcfb04cbbd204 (diff)
parentc45aa72e4db7065b848ae919d8cc7b6e90dbba37 (diff)
Merge "Fix preview image overlaps a call button during video call"
Diffstat (limited to 'java')
-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());
}
}