File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
lib/src/main/java/com/turingtechnologies/materialscrollbar Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 90
90
<excludeFolder url =" file://$MODULE_DIR$/build/outputs" />
91
91
<excludeFolder url =" file://$MODULE_DIR$/build/tmp" />
92
92
</content >
93
- <orderEntry type =" jdk" jdkName =" Android API 23 Platform (1) " jdkType =" Android SDK" />
93
+ <orderEntry type =" jdk" jdkName =" Android API 23 Platform" jdkType =" Android SDK" />
94
94
<orderEntry type =" sourceFolder" forTests =" false" />
95
95
<orderEntry type =" library" exported =" " name =" library-2.4.0" level =" project" />
96
96
<orderEntry type =" library" exported =" " name =" appcompat-v7-23.0.0" level =" project" />
Original file line number Diff line number Diff line change @@ -305,7 +305,7 @@ public float calculateScrollProgress(RecyclerView recyclerView) {
305
305
int indexOfLastFullyVisibleItemInFirstSection = numItemsInList - numScrollableSectionsInList - 1 ;
306
306
307
307
int currentSection = lastFullyVisiblePosition - indexOfLastFullyVisibleItemInFirstSection ;
308
- if (sectionIndicator .getVisibility () == VISIBLE ){
308
+ if (sectionIndicator != null && sectionIndicator .getVisibility () == VISIBLE ){
309
309
if (currentSection == 0 ){
310
310
sectionIndicator .setCharacter (((INameableAdapter )recyclerView .getAdapter ()).getCharacterForElement (currentSection ));
311
311
} else {
You can’t perform that action at this time.
0 commit comments