Commit 36e3c324 authored by Willard's avatar Willard

Fix minor errors :)

parent ca043d91
...@@ -44,7 +44,7 @@ public class DishReviewAdapter extends BaseAdapter { ...@@ -44,7 +44,7 @@ public class DishReviewAdapter extends BaseAdapter {
DishReview dr = dishReviews.get(position); DishReview dr = dishReviews.get(position);
title.setText(dr.getTitle()); title.setText(dr.getTitle());
rating.setText(dr.getRating()); rating.setText(dr.getRating() + "");
body.setText(dr.getBody()); body.setText(dr.getBody());
// TODO set username // TODO set username
return v; return v;
......
...@@ -44,7 +44,7 @@ public class DishViewActivity extends AppCompatActivity { ...@@ -44,7 +44,7 @@ public class DishViewActivity extends AppCompatActivity {
TextView dishName = (TextView) findViewById(R.id.dish_name); TextView dishName = (TextView) findViewById(R.id.dish_name);
dishName.setText(i.getStringExtra("NAME")); dishName.setText(i.getStringExtra("NAME"));
TextView dishPrice = (TextView) findViewById(R.id.dish_price); TextView dishPrice = (TextView) findViewById(R.id.dish_price);
dishPrice.setText(i.getStringExtra("PRICE")); dishPrice.setText("Php " + i.getDoubleExtra("PRICE", 0));
TextView dishDesc = (TextView) findViewById(R.id.dish_desc); TextView dishDesc = (TextView) findViewById(R.id.dish_desc);
dishDesc.setText(i.getStringExtra("DESCRIPTION")); dishDesc.setText(i.getStringExtra("DESCRIPTION"));
ImageView image = (ImageView) findViewById(R.id.dish_pic); ImageView image = (ImageView) findViewById(R.id.dish_pic);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment