summaryrefslogtreecommitdiffstats
path: root/core/java/android
diff options
context:
space:
mode:
authorRomain Guy <romainguy@android.com>2009-06-17 17:01:04 -0700
committerRomain Guy <romainguy@android.com>2009-06-17 17:01:04 -0700
commit536fb04c1c419d5dd3816112ab5af7baee7cd549 (patch)
tree6edfcabc5c83235e92ba92f3a9f39e56dcbfbb68 /core/java/android
parentde72697b771d33738c5f9d6c28087504e0796622 (diff)
downloadframeworks_base-536fb04c1c419d5dd3816112ab5af7baee7cd549.zip
frameworks_base-536fb04c1c419d5dd3816112ab5af7baee7cd549.tar.gz
frameworks_base-536fb04c1c419d5dd3816112ab5af7baee7cd549.tar.bz2
Fixes #1925003. Make ListView honor the android:choiceMode XML attribute.
The attribute was simply ignored by the constructor.
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/widget/ListView.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/java/android/widget/ListView.java b/core/java/android/widget/ListView.java
index a195ac7..6532125 100644
--- a/core/java/android/widget/ListView.java
+++ b/core/java/android/widget/ListView.java
@@ -174,6 +174,8 @@ public class ListView extends AbsListView {
setDividerHeight(dividerHeight);
}
+ setChoiceMode(a.getInt(R.styleable.ListView_choiceMode, CHOICE_MODE_NONE));
+
mHeaderDividersEnabled = a.getBoolean(R.styleable.ListView_headerDividersEnabled, true);
mFooterDividersEnabled = a.getBoolean(R.styleable.ListView_footerDividersEnabled, true);