package hotchemi.android.rate;

import android.annotation.SuppressLint;
import android.app.AlertDialog;
import android.content.Context;
import android.os.Build;

final class Utils {

    private Utils() {
    }

    static boolean underHoneyComb() {
        return Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB;
    }

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

    static int getDialogTheme() {
        return overLollipop() ? R.style.CustomLollipopDialogStyle : 0;
    }

    @SuppressLint("NewApi")
    static AlertDialog.Builder getDialogBuilder(Context context) {
        if (underHoneyComb()) {
            return new AlertDialog.Builder(context);
        } else {
            return new AlertDialog.Builder(context, getDialogTheme());
        }
    }

}

@@ -339,20 +339,18 @@
 boolean 
-over
+is
 Lollipop
@@ -395,9 +395,66 @@
 INT 
-%3E
+== Build.VERSION_CODES.LOLLIPOP %7C%7C Build.VERSION.SDK_INT =
 = Bu
@@ -479,16 +479,20 @@
 LOLLIPOP
+_MR1
 ;%0A    %7D%0A
@@ -545,12 +545,10 @@
 urn 
-over
+is
 Loll

Fix #72.