Skip to content

Commit

Permalink
Fix #72.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shintaro Katafuchi committed Oct 27, 2015
1 parent 32673e6 commit 209f947
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/src/main/java/hotchemi/android/rate/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ 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 boolean isLollipop() {
return Build.VERSION.SDK_INT == Build.VERSION_CODES.LOLLIPOP || Build.VERSION.SDK_INT == Build.VERSION_CODES.LOLLIPOP_MR1;
}

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

@SuppressLint("NewApi")
Expand Down

0 comments on commit 209f947

Please sign in to comment.