From db38d8a4ff28caef8f2565a8ba5dca2a7efe9d83 Mon Sep 17 00:00:00 2001 From: Adam Cohen Date: Fri, 21 Sep 2012 18:14:58 -0700 Subject: [PATCH] Fixing typos Change-Id: I3d470a18bd14a4040dffb0b0d8a11e282546057e --- .../java/com/android/server/AppWidgetServiceImpl.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/services/java/com/android/server/AppWidgetServiceImpl.java b/services/java/com/android/server/AppWidgetServiceImpl.java index 815ee24af7f5e..fcc8a0694eb6f 100644 --- a/services/java/com/android/server/AppWidgetServiceImpl.java +++ b/services/java/com/android/server/AppWidgetServiceImpl.java @@ -1627,22 +1627,22 @@ class AppWidgetServiceImpl { Integer.parseInt(minWidthString, 16)); } String minHeightString = parser.getAttributeValue(null, "min_height"); - if (minWidthString != null) { + if (minHeightString != null) { options.putInt(AppWidgetManager.OPTION_APPWIDGET_MIN_HEIGHT, Integer.parseInt(minHeightString, 16)); } - String maxWidthString = parser.getAttributeValue(null, "max_height"); - if (minWidthString != null) { + String maxWidthString = parser.getAttributeValue(null, "max_width"); + if (maxWidthString != null) { options.putInt(AppWidgetManager.OPTION_APPWIDGET_MAX_WIDTH, Integer.parseInt(maxWidthString, 16)); } String maxHeightString = parser.getAttributeValue(null, "max_height"); - if (minWidthString != null) { + if (maxHeightString != null) { options.putInt(AppWidgetManager.OPTION_APPWIDGET_MAX_HEIGHT, Integer.parseInt(maxHeightString, 16)); } String categoryString = parser.getAttributeValue(null, "host_category"); - if (minWidthString != null) { + if (categoryString != null) { options.putInt(AppWidgetManager.OPTION_APPWIDGET_HOST_CATEGORY, Integer.parseInt(categoryString, 16)); }