summaryrefslogtreecommitdiff
path: root/core/java/android/app/WindowContext.java
diff options
context:
space:
mode:
authorCharles Chen <charlesccchen@google.com>2020-02-24 15:42:59 +0800
committerCharles Chen <charlesccchen@google.com>2020-03-05 15:25:19 +0800
commitb8070fb66e75d1ee1ceedef6f839e81e0a35097b (patch)
tree83728a11a69e097ab5e21ad799a71ff9fba25e88 /core/java/android/app/WindowContext.java
parent82b4074d553d960588d6452dc18cbdb73f4afa05 (diff)
Generate WindowInsets with new insets API
In previous CL[1], WindowMetrics#WindowInsets is provided with legacy insets, which are stable insets and system window insets. With the new insets mode enabled, we should provide insets with new insets API. [1]: f65e022caa681f2aa23d76bdc91c42e63be8b1f3 Bug: 150095967 Test: atest WindowMetricsTests Change-Id: I251313b4b8c033dbad8b54e58cd166e2e1665d37
Diffstat (limited to 'core/java/android/app/WindowContext.java')
-rw-r--r--core/java/android/app/WindowContext.java1
1 files changed, 0 insertions, 1 deletions
diff --git a/core/java/android/app/WindowContext.java b/core/java/android/app/WindowContext.java
index 568456270809..878993ebcd19 100644
--- a/core/java/android/app/WindowContext.java
+++ b/core/java/android/app/WindowContext.java
@@ -60,7 +60,6 @@ public class WindowContext extends ContextWrapper {
mWms = WindowManagerGlobal.getWindowManagerService();
mToken = new WindowTokenClient();
-
final ContextImpl contextImpl = createBaseWindowContext(base, mToken);
attachBaseContext(contextImpl);
contextImpl.setOuterContext(this);