From b9b2462112b5f5848e45c5ee4166a6b8a094390b Mon Sep 17 00:00:00 2001 From: jacques Date: Sat, 18 Jul 2020 20:20:15 +0200 Subject: [PATCH] add helping behavior; optimize import --- .../net/foucry/pilldroid/SimpleDividerItemDecoration.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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();