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:
commit
f30faf2462
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user