Skip to content

Commit

Permalink
fix placement of lollipop natural qualifier check
Browse files Browse the repository at this point in the history
  • Loading branch information
iBotPeaches committed Nov 21, 2014
1 parent cd21bd3 commit ad70082
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,9 @@ private String generateQualifiers() {
}

private short getNaturalSdkVersionRequirement() {
if (density == DENSITY_ANY) {
return SDK_LOLLIPOP;
}
if (smallestScreenWidthDp != 0 || screenWidthDp != 0 || screenHeightDp != 0) {
return SDK_HONEYCOMB_MR2;
}
Expand All @@ -361,9 +364,6 @@ private short getNaturalSdkVersionRequirement() {
if ((screenLayout & (MASK_SCREENSIZE | MASK_SCREENLONG)) != SCREENSIZE_ANY || density != DENSITY_DEFAULT) {
return SDK_DONUT;
}
if (density == DENSITY_ANY) {
return SDK_LOLLIPOP;
}
return 0;
}

Expand Down Expand Up @@ -438,7 +438,7 @@ public int hashCode() {
public final static int DENSITY_ANY = 0xFFFE;
public final static int DENSITY_NONE = 0xFFFF;

public final static int MNC_ZERO = 0xFF;
public final static int MNC_ZERO = 0xFFFF;

public final static short MASK_LAYOUTDIR = 0xc0;
public final static short SCREENLAYOUT_LAYOUTDIR_ANY = 0x00;
Expand Down

0 comments on commit ad70082

Please sign in to comment.