Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CS123-CanteeneoAndroid
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Willard Torres
CS123-CanteeneoAndroid
Commits
fb03238d
Commit
fb03238d
authored
Dec 06, 2016
by
Willard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hide add stall review button initially to avoid pop in, disable stall favorite when not logged in
parent
1788d15b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
StallViewActivity.java
app/src/main/java/com/canteeneo/StallViewActivity.java
+3
-2
No files found.
app/src/main/java/com/canteeneo/StallViewActivity.java
View file @
fb03238d
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment