diff --git a/app/src/main/java/net/foucry/pilldroid/SimpleDividerItemDecoration.java b/app/src/main/java/net/foucry/pilldroid/SimpleDividerItemDecoration.java index e5d87d1..0532539 100644 --- a/app/src/main/java/net/foucry/pilldroid/SimpleDividerItemDecoration.java +++ b/app/src/main/java/net/foucry/pilldroid/SimpleDividerItemDecoration.java @@ -3,6 +3,8 @@ package net.foucry.pilldroid; import android.content.Context; import android.graphics.Canvas; import android.graphics.drawable.Drawable; + +import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerView; import android.view.View; @@ -17,7 +19,7 @@ public class SimpleDividerItemDecoration extends RecyclerView.ItemDecoration { } @Override - public void onDrawOver(Canvas c, RecyclerView parent, RecyclerView.State state) { + public void onDrawOver(@NonNull Canvas c, RecyclerView parent, @NonNull RecyclerView.State state) { int left = parent.getPaddingLeft(); int right = parent.getWidth() - parent.getPaddingRight();