Use modern call for resource

This commit is contained in:
jacques 2022-03-13 12:49:46 +01:00
parent 0a4d2c0517
commit d1e04bab7a

View file

@ -6,6 +6,7 @@ import android.graphics.drawable.Drawable;
import android.view.View;
import androidx.annotation.NonNull;
import androidx.appcompat.content.res.AppCompatResources;
import androidx.recyclerview.widget.RecyclerView;
/**
@ -15,7 +16,8 @@ public class SimpleDividerItemDecoration extends RecyclerView.ItemDecoration {
private final Drawable mDivider;
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