Commit fb03238d authored by Willard's avatar Willard

Hide add stall review button initially to avoid pop in, disable stall favorite when not logged in

parent 1788d15b
...@@ -48,6 +48,8 @@ public class StallViewActivity extends AppCompatActivity { ...@@ -48,6 +48,8 @@ public class StallViewActivity extends AppCompatActivity {
String name = i.getStringExtra("NAME"); String name = i.getStringExtra("NAME");
setTitle(name); setTitle(name);
findViewById(R.id.add_review_button).setVisibility(View.INVISIBLE);
getStall(name); getStall(name);
} }
...@@ -73,9 +75,8 @@ public class StallViewActivity extends AppCompatActivity { ...@@ -73,9 +75,8 @@ public class StallViewActivity extends AppCompatActivity {
location.setText(s.getLocation()); location.setText(s.getLocation());
TextView description = (TextView) findViewById(R.id.stall_description); TextView description = (TextView) findViewById(R.id.stall_description);
description.setText(s.getDescription()); description.setText(s.getDescription());
//ImageView image = (ImageView) findViewById(R.id.stall_logo);
//Picasso.with(getApplicationContext()).load("http://" + getResources().getString(R.string.server_ip) + ":5000/static/uploads/"+ s.getImagePath()).fit().centerCrop().into(image);
favoriteCheckbox = (CheckBox) findViewById(R.id.favorite_checkbox); favoriteCheckbox = (CheckBox) findViewById(R.id.favorite_checkbox);
favoriteCheckbox.setEnabled(AppUtils.isLoggedIn());
favoriteCheckbox.setOnClickListener(new View.OnClickListener() { favoriteCheckbox.setOnClickListener(new View.OnClickListener() {
@Override @Override
public void onClick(View v) { public void onClick(View v) {
......
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