Skip to content

Commit

Permalink
update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
limuyang committed Dec 22, 2019
1 parent 2791bb0 commit f0d70c3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
10 changes: 7 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,20 @@ android {
applicationId "com.chad.baserecyclerviewadapterhelper"
minSdkVersion 16
targetSdkVersion 28
versionCode 5
versionName "2.1"
versionCode 6
versionName "3.0"
}
buildTypes {
release {
minifyEnabled true
zipAlignEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}

debug {
minifyEnabled true
zipAlignEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
dataBinding {
enabled = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@ public void convert(@NotNull BaseViewHolder helper, @Nullable BaseNode data) {

@Override
public void onClick(@NotNull BaseViewHolder helper, @NotNull View view, BaseNode data, int position) {
FirstNode node = (FirstNode) data;
if (node.isExpanded()) {
getAdapter().collapse(position);
} else {
getAdapter().expand(position);
}
getAdapter().expandAndCollapseOther(position);
}
}

0 comments on commit f0d70c3

Please sign in to comment.