@@ -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