diff options
author | Deepanshu Gupta <deepanshu@google.com> | 2014-10-05 14:41:17 -0700 |
---|---|---|
committer | Deepanshu Gupta <deepanshu@google.com> | 2014-12-23 12:04:30 -0800 |
commit | 10bb1371dca38b5b59f083ee963f7987da6511f2 (patch) | |
tree | e7510e46158806a04a28162ca5917b226fe45656 /core/java/android/preference/Preference.java | |
parent | 029acc8ee8e40933c62f19d6f7ced43dca10a6ff (diff) | |
download | frameworks_base-10bb1371dca38b5b59f083ee963f7987da6511f2.zip frameworks_base-10bb1371dca38b5b59f083ee963f7987da6511f2.tar.gz frameworks_base-10bb1371dca38b5b59f083ee963f7987da6511f2.tar.bz2 |
Add preferences rendering.
NO_SQ: Depends on updating layoutlib-api-prebuilt.jar
Change-Id: Iae93ab74c478e6f2158e1528467bec9ee2d7ee9b
Diffstat (limited to 'core/java/android/preference/Preference.java')
-rw-r--r-- | core/java/android/preference/Preference.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/preference/Preference.java b/core/java/android/preference/Preference.java index 56d5617..0224c73 100644 --- a/core/java/android/preference/Preference.java +++ b/core/java/android/preference/Preference.java @@ -215,7 +215,7 @@ public class Preference implements Comparable<Preference> { final TypedArray a = context.obtainStyledAttributes( attrs, com.android.internal.R.styleable.Preference, defStyleAttr, defStyleRes); - for (int i = a.getIndexCount(); i >= 0; i--) { + for (int i = a.getIndexCount() - 1; i >= 0; i--) { int attr = a.getIndex(i); switch (attr) { case com.android.internal.R.styleable.Preference_icon: |