mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-22 04:29:22 +01:00
Use modern call for resource
This commit is contained in:
parent
0a4d2c0517
commit
d1e04bab7a
1 changed files with 3 additions and 1 deletions
|
@ -6,6 +6,7 @@ import android.graphics.drawable.Drawable;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
|
|
||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
|
import androidx.appcompat.content.res.AppCompatResources;
|
||||||
import androidx.recyclerview.widget.RecyclerView;
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -15,7 +16,8 @@ public class SimpleDividerItemDecoration extends RecyclerView.ItemDecoration {
|
||||||
private final Drawable mDivider;
|
private final Drawable mDivider;
|
||||||
|
|
||||||
SimpleDividerItemDecoration(Context context) {
|
SimpleDividerItemDecoration(Context context) {
|
||||||
mDivider = context.getDrawable(R.drawable.line_divider);
|
//mDivider = context.getDrawable(R.drawable.line_divider);
|
||||||
|
mDivider = AppCompatResources.getDrawable(context, R.drawable.line_divider);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue