Price color change if > old_long

This commit is contained in:
Nicolás Sánchez 2025-01-02 16:40:06 -03:00
parent 9cd48dfede
commit 5e018fe852
1 changed files with 6 additions and 0 deletions

View File

@ -81,6 +81,12 @@ public class WorkerCardAdapter{
} }
price.setText(String.format(Locale.ROOT, "%.8f", worker.getPrice())); 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())); nextSoPrice.setText(String.format(Locale.ROOT, "%.8f", worker.getNextSoPrice()));
if (worker.isShort() && if (worker.isShort() &&