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:
@@ -45,7 +45,6 @@ extern "C" {
|
||||
|
||||
GUIProgressBar::GUIProgressBar(xml_node<>* node) : GUIObject(node)
|
||||
{
|
||||
xml_attribute<>* attr;
|
||||
xml_node<>* child;
|
||||
|
||||
mEmptyBar = NULL;
|
||||
@@ -79,8 +78,12 @@ GUIProgressBar::GUIProgressBar(xml_node<>* node) : GUIObject(node)
|
||||
mCurValVar = LoadAttrString(child, "name");
|
||||
}
|
||||
|
||||
mRenderW = mEmptyBar->GetWidth();
|
||||
mRenderH = mEmptyBar->GetHeight();
|
||||
if (mEmptyBar && mEmptyBar->GetResource()) {
|
||||
mRenderW = mEmptyBar->GetWidth();
|
||||
mRenderH = mEmptyBar->GetHeight();
|
||||
} else {
|
||||
mRenderW = mRenderH = 0;
|
||||
}
|
||||
}
|
||||
|
||||
int GUIProgressBar::Render(void)
|
||||
|
||||
Reference in New Issue
Block a user