diff options
| author | Oleg Blinnikov <olb@google.com> | 2023-02-02 11:17:13 +0000 |
|---|---|---|
| committer | Oleg Blinnikov <olb@google.com> | 2023-02-02 13:50:31 +0000 |
| commit | b939e260be3abc6dae62ab114ffd8bc5d23b2007 (patch) | |
| tree | 6890b5a7df3090777cd37857cf73cc913699af44 /core/java/android/view/View.java | |
| parent | 1fa3b3821e158574570330f28ee25a4d7fd37f61 (diff) | |
Revert "Per-app override sandboxing View API to Activity bounds"
This reverts commit 1fa3b3821e158574570330f28ee25a4d7fd37f61.
Reason for revert: b/267507947
Change-Id: Ie8924e59b04b3044391c6929380a1db212c871b0
Merged-In: I460488c6307cae25abeee6045b712a1af453834a
Diffstat (limited to 'core/java/android/view/View.java')
| -rw-r--r-- | core/java/android/view/View.java | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index baee0940ddf7..d7480e5037f4 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -8774,8 +8774,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, * @hide */ @UnsupportedAppUsage - @TestApi - public void getBoundsOnScreen(@NonNull Rect outRect, boolean clipToParent) { + public void getBoundsOnScreen(Rect outRect, boolean clipToParent) { if (mAttachInfo == null) { return; } @@ -8783,7 +8782,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback, getBoundsToScreenInternal(position, clipToParent); outRect.set(Math.round(position.left), Math.round(position.top), Math.round(position.right), Math.round(position.bottom)); - mAttachInfo.mViewRootImpl.applyViewBoundsSandboxingIfNeeded(outRect); } /** @@ -15588,8 +15586,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, * @hide */ @UnsupportedAppUsage - @TestApi - public void getWindowDisplayFrame(@NonNull Rect outRect) { + public void getWindowDisplayFrame(Rect outRect) { if (mAttachInfo != null) { mAttachInfo.mViewRootImpl.getDisplayFrame(outRect); return; @@ -25786,11 +25783,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, getLocationInWindow(outLocation); final AttachInfo info = mAttachInfo; - - // Need to offset the outLocation with the window bounds, but only if "Sandboxing View - // Bounds APIs" is disabled. If this override is enabled, it sandboxes {@link outLocation} - // within activity bounds. - if (info != null && !info.mViewRootImpl.isViewBoundsSandboxingEnabled()) { + if (info != null) { outLocation[0] += info.mWindowLeft; outLocation[1] += info.mWindowTop; } |
