mirror of
https://github.com/Nezumi-2711/PRM392.git
synced 2026-09-23 04:09:54 +00:00
Improve Layout
This commit is contained in:
@@ -46,6 +46,13 @@ public class Common {
|
||||
return "Giao thành công";
|
||||
}
|
||||
|
||||
public static String convertCodePaymentToStatus(String status) {
|
||||
if(status.equals("0"))
|
||||
return "CHƯA THANH TOÁN";
|
||||
else
|
||||
return "ĐÃ THANH TOÁN";
|
||||
}
|
||||
|
||||
public static boolean isConnectedToInternet(Context context) {
|
||||
ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
|
||||
|
||||
|
||||
@@ -99,7 +99,7 @@ public class OrderStatus extends AppCompatActivity {
|
||||
orderViewHolder.txtOrderStatus.setText("Tình trạng đơn: " + Common.convertCodeToStatus(model.getStatus()));
|
||||
orderViewHolder.txtOrderAddress.setText("Địa chỉ: " + model.getAddress());
|
||||
orderViewHolder.txtOrderDate.setText("Ngày đặt: " + Common.getDate(Long.parseLong(adapter.getRef(i).getKey())));
|
||||
orderViewHolder.txtOrderPayment.setText("Tình trạng thanh toán: " + model.getPaymentStatus());
|
||||
orderViewHolder.txtOrderPayment.setText("Tình trạng thanh toán: " + Common.convertCodePaymentToStatus(model.getPaymentStatus()));
|
||||
orderViewHolder.btn_delete.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
|
||||
Reference in New Issue
Block a user