mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-21 20:19:23 +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;
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue