Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hds
flexin
android-app
Commits
0b9fb476
Commit
0b9fb476
authored
Nov 05, 2017
by
Nastuzzi Samy
Browse files
List info bug
Do not show filters if info is used
parent
0b8c8f1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/fr/utc/simde/payutc/articles/ListAdapater.java
View file @
0b9fb476
...
...
@@ -56,16 +56,18 @@ public class ListAdapater extends ArticlesAdapter {
TextView
priceText
=
view
.
findViewById
(
R
.
id
.
text_price
);
priceText
.
setText
((
article
.
has
(
"quantity"
)
?
Integer
.
toString
(
article
.
get
(
"quantity"
).
intValue
())
+
"x "
:
""
)
+
String
.
format
(
"%.2f"
,
new
Float
(
articleList
.
get
(
position
).
get
(
"price"
).
intValue
())
/
100.00f
)
+
"€"
);
ImageView
imageCotisant
=
view
.
findViewById
(
R
.
id
.
image_cotisant
);
ImageView
image18
=
view
.
findViewById
(
R
.
id
.
image_18
);
if
(
article
.
has
(
"info"
))
{
TextView
infoText
=
view
.
findViewById
(
R
.
id
.
text_info
);
infoText
.
setText
(
article
.
get
(
"info"
).
textValue
());
}
else
{
ImageView
imageCotisant
=
view
.
findViewById
(
R
.
id
.
image_cotisant
);
ImageView
image18
=
view
.
findViewById
(
R
.
id
.
image_18
);
setInfos
(
article
,
imageCotisant
,
image18
);
imageCotisant
.
setVisibility
(
View
.
GONE
);
image18
.
setVisibility
(
View
.
GONE
);
}
else
setInfos
(
article
,
imageCotisant
,
image18
);
setImage
(
imageView
,
article
.
get
(
"image_url"
).
textValue
(),
position
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment