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
2fa0dd01
Commit
2fa0dd01
authored
May 08, 2020
by
Thomas
Browse files
Fix issue
#432
parent
4b579bbb
Pipeline
#298956
passed with stage
in 3 minutes and 28 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/app/fedilab/android/drawers/StatusListAdapter.java
View file @
2fa0dd01
...
...
@@ -3152,23 +3152,16 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct
else
holder
.
status_document_container
.
setVisibility
(
View
.
VISIBLE
);
if
(
attachments
.
size
()
==
1
)
{
if
((
status
.
getCard
()
==
null
||
status
.
getCard
().
getType
().
compareTo
(
"video"
)
!=
0
||
status
.
getCard
().
getImage
()
==
null
))
{
if
(!
fullAttachement
)
holder
.
status_container2
.
setVisibility
(
View
.
GONE
);
else
{
holder
.
status_prev1_h
.
setVisibility
(
View
.
VISIBLE
);
holder
.
status_prev2_h
.
setVisibility
(
View
.
GONE
);
holder
.
status_prev3_h
.
setVisibility
(
View
.
GONE
);
holder
.
status_prev4_h
.
setVisibility
(
View
.
GONE
);
holder
.
horizontal_second_image
.
setVisibility
(
View
.
GONE
);
}
if
(
attachments
.
get
(
0
).
getUrl
().
trim
().
contains
(
"missing.png"
))
{
if
(
fullAttachement
)
holder
.
status_horizontal_document_container
.
setVisibility
(
View
.
GONE
);
else
holder
.
status_document_container
.
setVisibility
(
View
.
GONE
);
}
}
else
{
if
(!
fullAttachement
)
holder
.
status_container2
.
setVisibility
(
View
.
GONE
);
else
{
holder
.
status_prev1_h
.
setVisibility
(
View
.
VISIBLE
);
holder
.
status_prev2_h
.
setVisibility
(
View
.
GONE
);
holder
.
status_prev3_h
.
setVisibility
(
View
.
GONE
);
holder
.
status_prev4_h
.
setVisibility
(
View
.
GONE
);
holder
.
horizontal_second_image
.
setVisibility
(
View
.
GONE
);
}
if
(
attachments
.
get
(
0
).
getUrl
().
trim
().
contains
(
"missing.png"
))
{
if
(
fullAttachement
)
holder
.
status_horizontal_document_container
.
setVisibility
(
View
.
GONE
);
else
...
...
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