mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-22 04:29:22 +01:00
back to a working code
This commit is contained in:
parent
76ae8d6aaf
commit
17decf6916
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue