Price color change if > old_long
This commit is contained in:
parent
9cd48dfede
commit
5e018fe852
|
|
@ -81,6 +81,12 @@ public class WorkerCardAdapter{
|
|||
}
|
||||
|
||||
price.setText(String.format(Locale.ROOT, "%.8f", worker.getPrice()));
|
||||
if (worker.isShort()
|
||||
&& worker.getOldLongDictionary()!=null
|
||||
&& worker.getPrice()>worker.getOldLongDictionary().getTpPrice()) {
|
||||
price.setTextColor(Color.parseColor("#00FF00"));
|
||||
}
|
||||
|
||||
|
||||
nextSoPrice.setText(String.format(Locale.ROOT, "%.8f", worker.getNextSoPrice()));
|
||||
if (worker.isShort() &&
|
||||
|
|
|
|||
Loading…
Reference in New Issue