diff --git a/app/src/main/java/com/example/dcav2gui/ui/exchanges/adapters/WorkerCardAdapter.java b/app/src/main/java/com/example/dcav2gui/ui/exchanges/adapters/WorkerCardAdapter.java
index 52be6f7..b8f876d 100644
--- a/app/src/main/java/com/example/dcav2gui/ui/exchanges/adapters/WorkerCardAdapter.java
+++ b/app/src/main/java/com/example/dcav2gui/ui/exchanges/adapters/WorkerCardAdapter.java
@@ -9,8 +9,6 @@ import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ProgressBar;
import android.widget.TextView;
-import androidx.annotation.NonNull;
-import androidx.recyclerview.widget.RecyclerView;
import com.example.dcav2gui.R;
import com.example.dcav2gui.ui.exchanges.WorkerData;
import java.util.List;
@@ -20,7 +18,7 @@ import java.util.concurrent.TimeUnit;
public class WorkerCardAdapter{
- private ViewGroup container;
+ private final ViewGroup container;
public WorkerCardAdapter(ViewGroup container) {
this.container = container;
@@ -102,11 +100,11 @@ public class WorkerCardAdapter{
workerCardIcon.setVisibility(View.INVISIBLE);
}
if (worker.getStopWhenProfit()) {
- workerStatusString.setText("LAST DEAL");
+ workerStatusString.setText(R.string.last_deal_notice);
} else if (worker.isPaused()) {
cardLayout.setBackgroundColor(Color.parseColor("#C5C281"));
} else if (worker.isAuto()) {
- workerStatusString.setText("AUTO");
+ workerStatusString.setText(R.string.autoswitch_notice);
} else {
workerStatusString.setText("");
}
@@ -139,33 +137,4 @@ public class WorkerCardAdapter{
statusBar.setText(statusBarText);
}
- public static class WorkerViewHolder extends RecyclerView.ViewHolder {
- TextView pair;
- TextView safetyOrders;
- TextView uptime;
- TextView nextSoPrice;
- TextView price;
- TextView takeProfitPrice;
- TextView percentage;
- ProgressBar progressBar;
- TextView workerStatusString;
- ImageView workerCardIcon;
- LinearLayout cardLayout;
-
- public WorkerViewHolder(@NonNull View itemView) {
- super(itemView);
- pair = itemView.findViewById(R.id.workerCardPair);
- safetyOrders = itemView.findViewById(R.id.workerCardSafetyOrders);
- uptime = itemView.findViewById(R.id.workerCardUptime);
- nextSoPrice = itemView.findViewById(R.id.workerCardNextSoPrice);
- price = itemView.findViewById(R.id.workerCardCurrentPrice);
- takeProfitPrice = itemView.findViewById(R.id.workerCardTakeProfitPrice);
- percentage = itemView.findViewById(R.id.workerCardPercentageToDeal);
- progressBar = itemView.findViewById(R.id.workerCardProgressBar);
- workerStatusString = itemView.findViewById(R.id.workerCardStatusString);
- workerCardIcon = itemView.findViewById(R.id.workerCardIcon);
- cardLayout = itemView.findViewById(R.id.workerCard);
-
- }
- }
}
\ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 4702d15..718e106 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -79,4 +79,6 @@
Kucoin log
OKX log
Querying data sources…
+ LAST DEAL
+ AUTO
\ No newline at end of file