From 603cb36a5123e46656b06a5deb8d7ac7ff81307f Mon Sep 17 00:00:00 2001 From: 554325746@qq.com <554325746@qq.com> Date: 星期三, 25 十二月 2019 08:48:51 +0800 Subject: [PATCH] a --- app/src/main/java/com/basic/security/widget/hlistview/ExpandableHListView.java | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/app/src/main/java/com/basic/security/widget/hlistview/ExpandableHListView.java b/app/src/main/java/com/basic/security/widget/hlistview/ExpandableHListView.java index 4d02d6a..52d5de1 100644 --- a/app/src/main/java/com/basic/security/widget/hlistview/ExpandableHListView.java +++ b/app/src/main/java/com/basic/security/widget/hlistview/ExpandableHListView.java @@ -507,16 +507,6 @@ } /** - * This overloaded method should not be used, instead use - * {@link #setAdapter(ExpandableListAdapter)}. - * <p/> - * {@inheritDoc} - */ - public void setAdapter(ListAdapter adapter) { - throw new RuntimeException("For ExpandableListView, use setAdapter(ExpandableListAdapter) instead of " + "setAdapter(ListAdapter)"); - } - - /** * Sets the adapter that provides data to this view. * * @param adapter The adapter that provides data to this view. @@ -535,6 +525,16 @@ } /** + * This overloaded method should not be used, instead use + * {@link #setAdapter(ExpandableListAdapter)}. + * <p/> + * {@inheritDoc} + */ + public void setAdapter(ListAdapter adapter) { + throw new RuntimeException("For ExpandableListView, use setAdapter(ExpandableListAdapter) instead of " + "setAdapter(ListAdapter)"); + } + + /** * Register a callback to be invoked when an item has been clicked and the * caller prefers to receive a ListView-style position instead of a group * and/or child position. In most cases, the caller should use -- Gitblit v1.8.0