fix drawable's reference usage

This commit is contained in:
侯歌 2022-02-21 13:52:20 +08:00
parent b95a6d885b
commit 3430daf582

View File

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