summaryrefslogtreecommitdiff
path: root/core/java/android/widget/GridView.java
diff options
context:
space:
mode:
authorAdam Powell <adamp@google.com>2010-11-04 17:54:45 -0700
committerAdam Powell <adamp@google.com>2010-11-04 18:16:38 -0700
commit2614c6c1f9fb19af21b901c16c443335bbc9d50b (patch)
tree240cdbf45ea52ad689421098dce14dd383e0751a /core/java/android/widget/GridView.java
parentd7120ed63da2c7e8af044db66c9e109353f9d1b0 (diff)
Fix bug 3167099 and bug 3009490 - GridView choice modes and
getCheckedItemCount after orientation change Remove the restriction on choice modes for GridView - this is handled by common code in AbsListView. Persist the checked item count in saved instance state. Change-Id: Iebb964bb3c43779c082a458ea3f2754ab694b69d
Diffstat (limited to 'core/java/android/widget/GridView.java')
-rw-r--r--core/java/android/widget/GridView.java20
1 files changed, 0 insertions, 20 deletions
diff --git a/core/java/android/widget/GridView.java b/core/java/android/widget/GridView.java
index 936a97d5d60f..b963536076e3 100644
--- a/core/java/android/widget/GridView.java
+++ b/core/java/android/widget/GridView.java
@@ -107,26 +107,6 @@ public class GridView extends AbsListView {
a.recycle();
}
- /**
- * Set how the user may select items from the grid.
- *
- * <p>GridView only supports {@link AbsListView#CHOICE_MODE_NONE} and
- * {@link AbsListView#CHOICE_MODE_MULTIPLE_MODAL}. Attempting to set an unsupported choice
- * mode will throw an UnsupportedOperationException.
- */
- @Override
- public void setChoiceMode(int choiceMode) {
- switch (choiceMode) {
- case CHOICE_MODE_NONE:
- case CHOICE_MODE_MULTIPLE_MODAL:
- super.setChoiceMode(choiceMode);
- break;
-
- default:
- throw new UnsupportedOperationException("Unsupported choice mode " + choiceMode);
- }
- }
-
@Override
public ListAdapter getAdapter() {
return mAdapter;