From 33933fa9cf0649542c87d5701b6c394699bb5bed Mon Sep 17 00:00:00 2001 From: Tiger Huang Date: Wed, 21 Oct 2020 23:06:40 +0800 Subject: [PATCH] Remove legacy insets from View.AttachInfo The fields aren't used by anyone. Bug: 149813814 Test: Build Change-Id: I610375edcc212ce1f3a8045ef275648fe6939c5a --- core/java/android/view/View.java | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index cc679d84760c7..d5c0e2a057a4c 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -80,7 +80,6 @@ import android.graphics.drawable.GradientDrawable; import android.hardware.display.DisplayManagerGlobal; import android.net.Uri; import android.os.Build; -import android.os.Build.VERSION_CODES; import android.os.Bundle; import android.os.Handler; import android.os.IBinder; @@ -28911,33 +28910,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback, */ boolean mUse32BitDrawingCache; - /** - * For windows that are full-screen but using insets to layout inside - * of the screen decorations, these are the current insets for the - * content of the window. - */ - @UnsupportedAppUsage(maxTargetSdk = VERSION_CODES.Q, - publicAlternatives = "Use {@link WindowInsets#getInsets(int)}") - final Rect mContentInsets = new Rect(); - - /** - * For windows that are full-screen but using insets to layout inside - * of the screen decorations, these are the current insets for the - * actual visible parts of the window. - */ - @UnsupportedAppUsage(maxTargetSdk = VERSION_CODES.Q, - publicAlternatives = "Use {@link WindowInsets#getInsets(int)}") - final Rect mVisibleInsets = new Rect(); - - /** - * For windows that are full-screen but using insets to layout inside - * of the screen decorations, these are the current insets for the - * stable system windows. - */ - @UnsupportedAppUsage(maxTargetSdk = VERSION_CODES.Q, - publicAlternatives = "Use {@link WindowInsets#getInsets(int)}") - final Rect mStableInsets = new Rect(); - /** * Current caption insets to the display coordinate. */