Skip to content

Commit 1c27b4f

Browse files
committed
Version 12.3.1
- Set MaterialScrollBar visibility to public to allow for the dev not to know which variant is being used at compile time.
1 parent 0b79a8d commit 1c27b4f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apply plugin: 'com.android.library'
22

3-
def libVersion = '12.3.0'
3+
def libVersion = '12.3.1'
44

55
android {
66
compileSdkVersion 25

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
* instance of the bar.
6363
*/
6464
@SuppressWarnings({"unchecked", "unused"})
65-
abstract class MaterialScrollBar<T> extends RelativeLayout {
65+
public abstract class MaterialScrollBar<T> extends RelativeLayout {
6666

6767
//Component Views
6868
private View handleTrack;
@@ -198,9 +198,9 @@ void implementPreferences(){
198198

199199
public T setRecyclerView(RecyclerView rv){
200200
if(seekId != 0){
201-
throw new RuntimeException("There is already a recyclerView set by XML.");
201+
throw new IllegalStateException("There is already a recyclerView set by XML.");
202202
} else if (recyclerView != null){
203-
throw new RuntimeException("There is already a recyclerView set.");
203+
throw new IllegalStateException("There is already a recyclerView set.");
204204
}
205205
recyclerView = rv;
206206
generalSetup();

0 commit comments

Comments
 (0)