summaryrefslogtreecommitdiffstats
path: root/core/java/android/view
diff options
context:
space:
mode:
authorAdam Powell <adamp@google.com>2014-09-11 15:38:55 -0700
committerAdam Powell <adamp@google.com>2014-09-11 15:38:55 -0700
commit5eb3ffc24cbcce7e0c2995d0d4be62844fef4999 (patch)
tree163760a00801179b9e63371ff88e4afc9f223640 /core/java/android/view
parentf35423bb4e74f6cdc5e4cfc5302e659457e30f5d (diff)
downloadframeworks_base-5eb3ffc24cbcce7e0c2995d0d4be62844fef4999.zip
frameworks_base-5eb3ffc24cbcce7e0c2995d0d4be62844fef4999.tar.gz
frameworks_base-5eb3ffc24cbcce7e0c2995d0d4be62844fef4999.tar.bz2
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
Diffstat (limited to 'core/java/android/view')
-rw-r--r--core/java/android/view/View.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java
index 82c5425..eb8f3bf 100644
--- a/core/java/android/view/View.java
+++ b/core/java/android/view/View.java
@@ -4299,6 +4299,8 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
* </p>
*
* @param a the styled attributes set to initialize the fading edges from
+ *
+ * @removed
*/
protected void initializeFadingEdge(TypedArray a) {
// This method probably shouldn't have been included in the SDK to begin with.
@@ -4439,6 +4441,8 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
* </p>
*
* @param a the styled attributes set to initialize the scrollbars from
+ *
+ * @removed
*/
protected void initializeScrollbars(TypedArray a) {
// It's not safe to use this method from apps. The parameter 'a' must have been obtained