am db0a6017: DO NOT MERGE Ensure foreground colour is set during drag

* commit 'db0a601714a311ccbf7b6e780b80d8e5318df848':
  DO NOT MERGE Ensure foreground colour is set during drag
This commit is contained in:
Todd Kennedy 2011-01-31 11:11:25 -08:00 committed by Android Git Automerger
commit f30faf2462

View File

@ -77,17 +77,19 @@ public class MailboxListItem extends RelativeLayout {
}
public void setDropTargetBackground(boolean dragInProgress, long itemMailbox) {
int labelNameColor = sTextPrimaryColor;
int labelCountColor = sTextSecondaryColor;
if (dragInProgress) {
if (isDropTarget(itemMailbox)) {
setBackgroundColor(sDropAvailableBgColor);
} else {
mLabelName.setTextColor(sDropUnavailableFgColor);
mLabelCount.setTextColor(sDropUnavailableFgColor);
labelNameColor = sDropUnavailableFgColor;
labelCountColor = sDropUnavailableFgColor;
}
} else {
mLabelName.setTextColor(sTextPrimaryColor);
mLabelCount.setTextColor(sTextSecondaryColor);
setBackgroundDrawable(mBackground);
}
mLabelName.setTextColor(labelNameColor);
mLabelCount.setTextColor(labelCountColor);
}
}