From 5eb3ffc24cbcce7e0c2995d0d4be62844fef4999 Mon Sep 17 00:00:00 2001 From: Adam Powell Date: Thu, 11 Sep 2014 15:38:55 -0700 Subject: Remove View methods that can't be used safely from the SDK View methods that previously accepted a TypedArray to initialize parameters parsed from xml cannot be used correctly by apps. The TypedArray passed must always be obtained from a context using the filter array com.android.internal.R.styleable.View, which is not visible to the SDK. A previous change already made this safe for existing apps already using it so that they don't crash, this change removes these methods from the SDK entirely. Change-Id: I62099087ad6fd5bf8363e863b04fd0434b8cdfca --- api/current.txt | 2 -- api/removed.txt | 5 +++++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'api') diff --git a/api/current.txt b/api/current.txt index 42eaef0db25b..680b68b917f2 100644 --- a/api/current.txt +++ b/api/current.txt @@ -33833,8 +33833,6 @@ package android.view { method public boolean hasTransientState(); method public boolean hasWindowFocus(); method public static android.view.View inflate(android.content.Context, int, android.view.ViewGroup); - method protected void initializeFadingEdge(android.content.res.TypedArray); - method protected void initializeScrollbars(android.content.res.TypedArray); method public void invalidate(android.graphics.Rect); method public void invalidate(int, int, int, int); method public void invalidate(); diff --git a/api/removed.txt b/api/removed.txt index c8a3b4bfe693..3f2a5a5fe84f 100644 --- a/api/removed.txt +++ b/api/removed.txt @@ -24,6 +24,11 @@ package android.os { package android.view { + public class View implements android.view.accessibility.AccessibilityEventSource android.graphics.drawable.Drawable.Callback android.view.KeyEvent.Callback { + method protected void initializeFadingEdge(android.content.res.TypedArray); + method protected void initializeScrollbars(android.content.res.TypedArray); + } + public static class WindowManager.LayoutParams extends android.view.ViewGroup.LayoutParams implements android.os.Parcelable { field public static final int TYPE_KEYGUARD = 2004; // 0x7d4 } -- cgit v1.2.3-59-g8ed1b