mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-22 04:29:22 +01:00
add helping behavior;
optimize import
This commit is contained in:
parent
053eb53459
commit
b9b2462112
1 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue