Merge AOSP android-9.0.0_r3
Fix conflicts and make it build in 5.1, 6.0, 7.1, 8.1, and 9.0 Change-Id: Ida0a64c29ff27d339b7f42a18d820930964ac6e4
This commit is contained in:
+11
-2
@@ -58,8 +58,17 @@ GUIPartitionList::GUIPartitionList(xml_node<>* node) : GUIScrollList(node)
|
||||
selectedList = attr->value();
|
||||
}
|
||||
|
||||
int iconWidth = std::max(mIconSelected->GetWidth(), mIconUnselected->GetWidth());
|
||||
int iconHeight = std::max(mIconSelected->GetHeight(), mIconUnselected->GetHeight());
|
||||
int iconWidth = 0, iconHeight = 0;
|
||||
if (mIconSelected && mIconSelected->GetResource() && mIconUnselected && mIconUnselected->GetResource()) {
|
||||
iconWidth = std::max(mIconSelected->GetWidth(), mIconUnselected->GetWidth());
|
||||
iconHeight = std::max(mIconSelected->GetHeight(), mIconUnselected->GetHeight());
|
||||
} else if (mIconSelected && mIconSelected->GetResource()) {
|
||||
iconWidth = mIconSelected->GetWidth();
|
||||
iconHeight = mIconSelected->GetHeight();
|
||||
} else if (mIconUnselected && mIconUnselected->GetResource()) {
|
||||
iconWidth = mIconUnselected->GetWidth();
|
||||
iconHeight = mIconUnselected->GetHeight();
|
||||
}
|
||||
SetMaxIconSize(iconWidth, iconHeight);
|
||||
|
||||
child = FindNode(node, "listtype");
|
||||
|
||||
Reference in New Issue
Block a user