summaryrefslogtreecommitdiffstats
path: root/core/java/android/content
diff options
context:
space:
mode:
authorJustin Ho <justinho@google.com>2012-10-17 15:55:15 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-10-17 15:55:15 -0700
commit871a6d7d4fb3bffaff37e45f0b4f5e3c862239d2 (patch)
treee20f3bfd56a2262f092d275366273780192d774e /core/java/android/content
parent4db3165793a837ffc8197184fbc13ef2217e3dfc (diff)
parent4e360f06003dd31da25dc8529fa1876ab573d0aa (diff)
downloadframeworks_base-871a6d7d4fb3bffaff37e45f0b4f5e3c862239d2.zip
frameworks_base-871a6d7d4fb3bffaff37e45f0b4f5e3c862239d2.tar.gz
frameworks_base-871a6d7d4fb3bffaff37e45f0b4f5e3c862239d2.tar.bz2
Merge "Revert "This restores JB MR0 behavior where the framework throws an exception for improper layouts that are missing layout_width and/or layout_height."" into jb-mr1-dev
Diffstat (limited to 'core/java/android/content')
-rw-r--r--core/java/android/content/res/TypedArray.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/core/java/android/content/res/TypedArray.java b/core/java/android/content/res/TypedArray.java
index 2968fbb..7f3b6b9 100644
--- a/core/java/android/content/res/TypedArray.java
+++ b/core/java/android/content/res/TypedArray.java
@@ -469,13 +469,20 @@ public class TypedArray {
* {@link android.view.ViewGroup}'s layout_width and layout_height
* attributes. This is only here for performance reasons; applications
* should use {@link #getDimensionPixelSize}.
- *
+ *
* @param index Index of the attribute to retrieve.
* @param name Textual name of attribute for error reporting.
*
* @return Attribute dimension value multiplied by the appropriate
* metric and truncated to integer pixels.
+ *
+ * @throws RuntimeException
+ * if this TypedArray does not contain an entry for <code>index</code>
+ *
+ * @deprecated Use {@link #getLayoutDimension(int, int)} instead.
+ *
*/
+ @Deprecated
public int getLayoutDimension(int index, String name) {
index *= AssetManager.STYLE_NUM_ENTRIES;
final int[] data = mData;