package com.yydcdut.sdlv;

import android.graphics.drawable.Drawable;
import android.os.Build;
import android.view.View;

/**
 * Created by yuyidong on 15/12/7.
 */
class Compat {

    public static void setBackgroundDrawable(View view, Drawable drawable) {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
            view.setBackground(drawable);
        } else {
            view.setBackgroundDrawable(drawable);
        }
    }

    public static boolean afterLollipop() {
        return Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP;
    }
}

@@ -450,128 +450,7 @@
    %7D
-%0A%0A    public static boolean afterLollipop() %7B%0A        return Build.VERSION.SDK_INT %3E= Build.VERSION_CODES.LOLLIPOP;%0A    %7D
 %0A%7D%0A

delete method