Skip to content

Commit

Permalink
fixed index out of range error on setHeaderHighlight
Browse files Browse the repository at this point in the history
  • Loading branch information
tlaabs committed Aug 19, 2019
1 parent 3260e86 commit c192974
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .idea/runConfigurations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ android {
applicationId "com.github.tlaabs.timetableviewdemo"
minSdkVersion 19
targetSdkVersion 28
versionCode 3
versionName "1.0.3"
versionCode 4
versionName "1.0.3-fx1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ public void remove(int idx) {
}

public void setHeaderHighlight(int idx) {
if(idx < 0)return;
TableRow row = (TableRow) tableHeader.getChildAt(0);
View element = row.getChildAt(idx);
if(highlightMode == HighlightMode.COLOR) {
Expand Down

0 comments on commit c192974

Please sign in to comment.