diff --git a/gravitysnaphelper/src/main/java/com/github/rubensousa/gravitysnaphelper/GravitySnapRecyclerView.java b/gravitysnaphelper/src/main/java/com/github/rubensousa/gravitysnaphelper/GravitySnapRecyclerView.java index 0166041..5a6710c 100644 --- a/gravitysnaphelper/src/main/java/com/github/rubensousa/gravitysnaphelper/GravitySnapRecyclerView.java +++ b/gravitysnaphelper/src/main/java/com/github/rubensousa/gravitysnaphelper/GravitySnapRecyclerView.java @@ -66,6 +66,7 @@ public GravitySnapRecyclerView(@NonNull Context context, @Nullable AttributeSet break; case 4: snapHelper = new GravitySnapHelper(Gravity.CENTER); + break; default: throw new IllegalArgumentException("Invalid gravity value. Use START " + "| END | BOTTOM | TOP | CENTER constants");