Skip to content

Commit

Permalink
fix: fix drawable cache exception
Browse files Browse the repository at this point in the history
  • Loading branch information
loongwind committed Jul 26, 2023
1 parent 4a51867 commit 3d3ee76
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ fun setDivider(
|| dividerBottomPadding != null){
val orientation = dividerOrientation ?: DividerItemDecoration.VERTICAL
val dividerItemDecoration = DividerItemDecoration(recyclerView.context, orientation)
var insetDrawable = recyclerView.context.resources.getDrawable(R.drawable.ardf_recyclerview_divider, null)
var insetDrawable = recyclerView.context.resources.getDrawable(R.drawable.ardf_recyclerview_divider, null).mutate()
if(insetDrawable is InsetDrawable){
val shapeDrawable = insetDrawable.drawable
if(shapeDrawable is GradientDrawable){
Expand Down

0 comments on commit 3d3ee76

Please sign in to comment.