Skip to content
Snippets Groups Projects
Commit 865bb7f4 authored by fheyming's avatar fheyming
Browse files

Removed hc strings

parent f4ff89b4
No related branches found
No related tags found
1 merge request!1Mal aufn Master megren
......@@ -66,8 +66,8 @@ public class Recyclerviewadapter_Supplier_Orders extends RecyclerView.Adapter<Re
public void onBindViewHolder(@NonNull Recyclerviewadapter_Supplier_Orders.MyViewHolder holder, int position) {
holder.tvID.setText(String.valueOf("# " + bestellungen.get(position).id));
holder.tvState.setText(bestellungen.get(position).state);
if(bestellungen.get(position).state.equals("ordered")){
holder.readyButton.setText("ready");
if(bestellungen.get(position).state.equals(context.getString(R.string.ordered))){
holder.readyButton.setText(context.getString(R.string.ready));
}
else if(bestellungen.get(position).state.equals(context.getString(R.string.readyForPickup))){
holder.readyButton.setText(context.getString(R.string.picked));
......
......@@ -49,7 +49,7 @@ public class Recyclerviewadapter_deliverer_activeOrders extends RecyclerView.Ada
holder.readyButton.setText(context.getString(R.string.inTransportation));
}
else if(bestellungen.get(position).state.equals(context.getString(R.string.readyForTransport))){
holder.readyButton.setText("reserve");
holder.readyButton.setText(context.getString(R.string.reserve));
}
else{
holder.readyButton.setVisibility(View.INVISIBLE);
......
......@@ -47,7 +47,7 @@ public class Recyclerviewadapter_deliverer_closedOrders extends RecyclerView.Ada
holder.readyButton.setText(context.getString(R.string.inTransportation));
}
else if(bestellungen.get(position).state.equals(context.getString(R.string.readyForTransport))){
holder.readyButton.setText("reserve");
holder.readyButton.setText(context.getString(R.string.reserve));
}
else{
holder.readyButton.setVisibility(View.INVISIBLE);
......
......@@ -49,7 +49,7 @@ public class Recyclerviewadapter_deliverer_orders extends RecyclerView.Adapter<R
holder.readyButton.setText(context.getString(R.string.inTransportation));
}
else if(bestellungen.get(position).state.equals(context.getString(R.string.readyForTransport))){
holder.readyButton.setText("reserve");
holder.readyButton.setText(context.getString(R.string.reserve));
}
else{
holder.readyButton.setVisibility(View.INVISIBLE);
......
......@@ -49,4 +49,16 @@
<string name="amount">Amount</string>
<string name="ready">Ready</string>
<string name="sum_dp">Sum:</string>
<string name="reserve">reserve</string>
<string name="ordered">ordered</string>
<string name="price">Price</string>
<string name="itemname">Itemname:</string>
<string name="amount_dp">Amount:</string>
<string name="items_sold_dp">Items sold:</string>
<string name="sales_volume_dp">Sales volume:</string>
<string name="orders_dp">Orders:</string>
<string name="supplieraddress_dp">Supplieraddress:</string>
<string name="edit">EDIT</string>
<string name="total">Total</string>
<string name="sold_units_dp">Sold Units:</string>
</resources>
\ No newline at end of file
......@@ -58,5 +58,7 @@
<string name="sum_dp">Sum:</string>
<string name="total">Total</string>
<string name="sold_units_dp">Sold Units:</string>
<string name="reserve">reserve2</string>
<string name="ordered">ordered</string>
</resources>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment