Skip to content

Commit 7f211f9

Browse files
committed
Minor updates
1 parent 0316e3f commit 7f211f9

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

app/build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 30
5-
buildToolsVersion '30.0.3'
4+
compileSdkVersion 32
5+
buildToolsVersion '32.0.0'
66

77
defaultConfig {
88
applicationId "com.turingtechnologies.materialscrollbardemo"
99
minSdkVersion 14
10-
targetSdkVersion 30
10+
targetSdkVersion 32
1111
versionCode 7
1212
versionName "7.0"
1313
}
@@ -25,8 +25,8 @@ android {
2525

2626
dependencies {
2727
implementation project(':lib')
28-
implementation 'androidx.recyclerview:recyclerview:1.1.0'
28+
implementation 'androidx.recyclerview:recyclerview:1.2.1'
2929
implementation 'com.pnikosis:materialish-progress:1.7'
30-
implementation 'com.google.android.material:material:1.2.1'
31-
implementation 'androidx.appcompat:appcompat:1.2.0'
30+
implementation 'com.google.android.material:material:1.4.0'
31+
implementation 'androidx.appcompat:appcompat:1.4.0'
3232
}

lib/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55

66
android {
77
compileSdkVersion 32
8-
buildToolsVersion '30.0.3'
8+
buildToolsVersion '32.0.0'
99

1010
defaultConfig {
1111
minSdkVersion 14
@@ -37,7 +37,7 @@ afterEvaluate {
3737
// You can then customize attributes of the publication as shown below.
3838
groupId = 'com.turingtechnologies.materialscrollbar'
3939
artifactId = 'library'
40-
version = '13.4.2'
40+
version = '13.4.3'
4141
}
4242
}
4343
}

lib/src/main/java/com/turingtechnologies/materialscrollbar/MaterialScrollBar.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,9 @@ protected void onLayout(boolean changed, int l, int t, int r, int b) {
306306
throw new RuntimeException("You need to set a recyclerView for the scroll bar, either in the XML or using setRecyclerView().");
307307
}
308308

309+
if (recyclerView.getLayoutManager() == null && !isInEditMode())
310+
return;
311+
309312
scrollUtils.scrollHandleAndIndicator();
310313

311314
if(!isInEditMode()) {

0 commit comments

Comments
 (0)