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;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.drawable.Drawable;
import android.view.View;
@ -14,8 +15,8 @@ import androidx.recyclerview.widget.RecyclerView;
public class SimpleDividerItemDecoration extends RecyclerView.ItemDecoration {
private final Drawable mDivider;
SimpleDividerItemDecoration() {
mDivider = ContextCompat.getDrawable(R.drawable.line_divider);
SimpleDividerItemDecoration(Context context) {
mDivider = context.getDrawable(R.drawable.line_divider);
}
@Override