We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02e3803 commit 649a7b0Copy full SHA for 649a7b0
lib/src/main/java/com/wanjian/view/ExpandableAdapter.java
@@ -21,20 +21,29 @@ int getSafeChildCount(int groupIndex) {
21
}
22
23
public void collapseGroup(int groupIndex) {
24
+ if (groupIndex < 0 || groupIndex >= getSafeGroupCount()) {
25
+ return;
26
+ }
27
if (isExpanded(groupIndex)) {
28
notifyChildItemRangeRemoved(groupIndex, 0, getSafeChildCount(groupIndex));
29
isCollapsed.set(groupIndex);
30
31
32
33
public void expandGroup(int groupIndex) {
34
35
36
37
if (isExpanded(groupIndex) == false) {
38
isCollapsed.clear(groupIndex);
39
notifyChildItemRangeInserted(groupIndex, 0, getSafeChildCount(groupIndex));
40
41
42
43
public boolean isExpanded(int groupIndex) {
44
45
+ return false;
46
47
return !isCollapsed.get(groupIndex);
48
49
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments