Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
warppay-app
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sebastian
warppay-app
Commits
711972e7
Commit
711972e7
authored
7 years ago
by
Christian Dresen
Browse files
Options
Downloads
Patches
Plain Diff
Fix for Product Prices
parent
90d26b49
Branches
master
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
WarpDrinkApp/app/src/main/java/ms/warpzone/warppay/dialogs/ProductDialog.java
+2
-1
2 additions, 1 deletion
.../main/java/ms/warpzone/warppay/dialogs/ProductDialog.java
with
2 additions
and
1 deletion
WarpDrinkApp/app/src/main/java/ms/warpzone/warppay/dialogs/ProductDialog.java
+
2
−
1
View file @
711972e7
...
...
@@ -47,6 +47,7 @@ public class ProductDialog extends Dialog implements View.OnClickListener {
String
placeholder
=
"\n\n\n\n\n\n"
;
placeholder
=
placeholder
.
substring
(
Integer
.
valueOf
(
p
.
getName
().
length
()
/
16
));
prodButton
.
setText
(
p
.
getName
()+
placeholder
+
String
.
valueOf
(
p
.
getPrice
())+
" Euro"
);
prodButton
.
setTag
(
p
.
getName
());
prodButton
.
setOnClickListener
(
this
);
this
.
gridProducts
.
addView
(
prodButton
);
}
...
...
@@ -66,7 +67,7 @@ public class ProductDialog extends Dialog implements View.OnClickListener {
public
void
onClick
(
View
view
)
{
MainManager
.
getInstance
().
startTimer
();
Button
clicked
=
(
Button
)
view
;
String
product_name
=
(
String
)
clicked
.
getT
ext
();
String
product_name
=
(
String
)
clicked
.
getT
ag
();
Product
product
=
Product
.
getOneByName
(
product_name
);
Order
order
=
new
Order
(
product
);
UiManager
.
getInstance
().
addOrder
(
order
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment