mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-11-29 18:59:14 +08:00
fix drawable's reference usage
This commit is contained in:
parent
b95a6d885b
commit
3430daf582
@ -292,7 +292,7 @@ Drawable* Assets::getDrawable(const std::string&fullresid){
|
||||
return new ColorDrawable(Color::parseColor(resname));
|
||||
}
|
||||
|
||||
if(TextUtils::startWith(resname,"attr"))//for reference resource
|
||||
if(TextUtils::startWith(resname,"attr")){//for reference resource
|
||||
resname = mTheme.getString(resname.substr(5));
|
||||
d=getDrawable(resname);
|
||||
LOG(DEBUG)<<fullresid<<"="<<resname<<" d="<<d;
|
||||
|
Loading…
Reference in New Issue
Block a user