Skip to content

Commit db38d8a

Browse files
author
Adam Cohen
committed
Fixing typos
Change-Id: I3d470a18bd14a4040dffb0b0d8a11e282546057e
1 parent 6ccf4e2 commit db38d8a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

services/java/com/android/server/AppWidgetServiceImpl.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1627,22 +1627,22 @@ void readStateFromFileLocked(FileInputStream stream) {
16271627
Integer.parseInt(minWidthString, 16));
16281628
}
16291629
String minHeightString = parser.getAttributeValue(null, "min_height");
1630-
if (minWidthString != null) {
1630+
if (minHeightString != null) {
16311631
options.putInt(AppWidgetManager.OPTION_APPWIDGET_MIN_HEIGHT,
16321632
Integer.parseInt(minHeightString, 16));
16331633
}
1634-
String maxWidthString = parser.getAttributeValue(null, "max_height");
1635-
if (minWidthString != null) {
1634+
String maxWidthString = parser.getAttributeValue(null, "max_width");
1635+
if (maxWidthString != null) {
16361636
options.putInt(AppWidgetManager.OPTION_APPWIDGET_MAX_WIDTH,
16371637
Integer.parseInt(maxWidthString, 16));
16381638
}
16391639
String maxHeightString = parser.getAttributeValue(null, "max_height");
1640-
if (minWidthString != null) {
1640+
if (maxHeightString != null) {
16411641
options.putInt(AppWidgetManager.OPTION_APPWIDGET_MAX_HEIGHT,
16421642
Integer.parseInt(maxHeightString, 16));
16431643
}
16441644
String categoryString = parser.getAttributeValue(null, "host_category");
1645-
if (minWidthString != null) {
1645+
if (categoryString != null) {
16461646
options.putInt(AppWidgetManager.OPTION_APPWIDGET_HOST_CATEGORY,
16471647
Integer.parseInt(categoryString, 16));
16481648
}

0 commit comments

Comments
 (0)