back to a working code

This commit is contained in:
jacques 2020-12-07 11:45:05 +01:00
parent 76ae8d6aaf
commit 17decf6916

View file

@ -1,5 +1,6 @@
package net.foucry.pilldroid; package net.foucry.pilldroid;
import android.content.Context;
import android.graphics.Canvas; import android.graphics.Canvas;
import android.graphics.drawable.Drawable; import android.graphics.drawable.Drawable;
import android.view.View; import android.view.View;
@ -14,8 +15,8 @@ import androidx.recyclerview.widget.RecyclerView;
public class SimpleDividerItemDecoration extends RecyclerView.ItemDecoration { public class SimpleDividerItemDecoration extends RecyclerView.ItemDecoration {
private final Drawable mDivider; private final Drawable mDivider;
SimpleDividerItemDecoration() { SimpleDividerItemDecoration(Context context) {
mDivider = ContextCompat.getDrawable(R.drawable.line_divider); mDivider = context.getDrawable(R.drawable.line_divider);
} }
@Override @Override