package com.smart.library.widget.recyclerview

import android.content.Context
import android.graphics.Canvas
import androidx.annotation.Keep
import androidx.recyclerview.widget.DividerItemDecoration
import androidx.recyclerview.widget.RecyclerView

//@Keep
class STDividerItemDecoration(context: Context?, orientation: Int) : DividerItemDecoration(context, orientation) {

    override fun onDraw(c: Canvas, parent: RecyclerView, state: RecyclerView.State) {
        if ((parent.adapter?.itemCount ?: 0) > 1) {
            super.onDraw(c, parent, state)
        }
    }
}