Fix division by zero in ARC

This commit is contained in:
Cameron Gutman 2015-03-31 20:29:22 -04:00
parent 88249ba8aa
commit 2160e87fef

View File

@ -40,7 +40,7 @@ public class AppGridAdapter extends GenericGridAdapter<AppView.AppObject> {
dp = LARGE_WIDTH_DP; dp = LARGE_WIDTH_DP;
} }
double scalingDivisor = ART_WIDTH_PX / (dp * (dpi / 160)); double scalingDivisor = ART_WIDTH_PX / (dp * (dpi / 160.0));
if (scalingDivisor < 1.0) { if (scalingDivisor < 1.0) {
// We don't want to make them bigger before draw-time // We don't want to make them bigger before draw-time
scalingDivisor = 1.0; scalingDivisor = 1.0;