Skip to content

Commit

Permalink
Add missing parenthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensousa committed Jul 26, 2017
1 parent bbe5e27 commit def6331
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public GravityPagerSnapHelper(int gravity, boolean enableSnapLastItem,
public void attachToRecyclerView(@Nullable RecyclerView recyclerView)
throws IllegalStateException {
if (recyclerView != null
&& !(recyclerView.getLayoutManager() instanceof LinearLayoutManager)
|| recyclerView.getLayoutManager() instanceof GridLayoutManager) {
&& (!(recyclerView.getLayoutManager() instanceof LinearLayoutManager)
|| recyclerView.getLayoutManager() instanceof GridLayoutManager)) {
throw new IllegalStateException("GravityPagerSnapHelper needs a RecyclerView" +
" with a LinearLayoutManager");
}
Expand Down

0 comments on commit def6331

Please sign in to comment.