Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Thomas
Fedilab
Commits
d32f05df
Commit
d32f05df
authored
May 08, 2020
by
Thomas
Browse files
Fix an issue with PixelFed
parent
b035fb96
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/app/fedilab/android/drawers/PixelfedListAdapter.java
View file @
d32f05df
...
...
@@ -553,11 +553,11 @@ public class PixelfedListAdapter extends RecyclerView.Adapter implements OnPostA
}
else
if
(
status
.
getMedia_attachments
()
!=
null
)
{
holder
.
art_media
.
setVisibility
(
View
.
VISIBLE
);
holder
.
imageSlider
.
setVisibility
(
View
.
GONE
);
if
(
status
.
getMedia_attachments
().
get
(
0
).
getType
().
toLowerCase
().
equals
(
"video"
))
{
if
(
status
.
getMedia_attachments
().
get
(
0
).
getType
()
!=
null
&&
status
.
getMedia_attachments
().
get
(
0
).
getType
()
.
toLowerCase
().
equals
(
"video"
))
{
holder
.
art_media_play
.
setVisibility
(
View
.
VISIBLE
);
}
String
url
;
if
(
status
.
getMedia_attachments
().
get
(
0
).
getPreview_url
().
endsWith
(
"no-preview.png"
))
{
if
(
status
.
getMedia_attachments
().
get
(
0
).
getPreview_url
()
!=
null
&&
status
.
getMedia_attachments
().
get
(
0
).
getPreview_url
()
.
endsWith
(
"no-preview.png"
))
{
url
=
status
.
getMedia_attachments
().
get
(
0
).
getUrl
();
}
else
{
url
=
status
.
getMedia_attachments
().
get
(
0
).
getPreview_url
();
...
...
Write
Preview
Supports
Markdown
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