mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2024-12-23 01:00:04 +02:00
Fix null value
This commit is contained in:
parent
27a67445c9
commit
d2b7ce3909
1 changed files with 3 additions and 0 deletions
|
@ -411,6 +411,9 @@ public class ComposeAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder
|
|||
*/
|
||||
public void addSharing(String url, String title, String description, String subject, String content, String saveFilePath) {
|
||||
int position = statusList.size() - 1;
|
||||
if (description == null && content == null) {
|
||||
return;
|
||||
}
|
||||
if (title != null || subject != null) {
|
||||
statusList.get(position).text = title != null ? title : subject;
|
||||
statusList.get(position).text += "\n\n";
|
||||
|
|
Loading…
Reference in a new issue