fix textview's textcolor issue

This commit is contained in:
houzh 2023-11-27 14:52:22 +08:00
parent cf1673f325
commit a2246eb543

View File

@ -1584,7 +1584,7 @@ void TextView::updateTextColors(){
bool inval = false;
int color;
const std::vector<int>&drawableState = getDrawableState();
if (mCurTextColor) {
if (mTextColor) {
color = mTextColor->getColorForState(drawableState,0);
LOGV("%p:%d change color %x->%x",this,mID,color,mCurTextColor);
mCurTextColor = color;