Skip to content

Commit

Permalink
Merge pull request #1557 from AllenCoder/master
Browse files Browse the repository at this point in the history
upgradle gradle version and  fix issue
  • Loading branch information
CymChad authored Sep 17, 2017
2 parents 4548016 + 68cc05f commit 2385c22
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {

}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.1'
classpath 'com.android.tools.build:gradle:2.3.3'
}
}

Expand Down
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
android.enableBuildCache=true
android.enableD8=true
android.buildCacheDir=./build/buildCache/
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.0-all.zip
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ public BaseViewHolder(final View view) {
}

private int getClickPosition() {
return getLayoutPosition() - adapter.getHeaderLayoutCount();
if (getLayoutPosition()>=adapter.getHeaderLayoutCount()){
return getLayoutPosition() - adapter.getHeaderLayoutCount();
}
return 0;
}

public HashSet<Integer> getItemChildLongClickViewIds() {
Expand Down

0 comments on commit 2385c22

Please sign in to comment.