Fix null value

This commit is contained in:
Thomas 2022-07-25 16:44:46 +02:00
parent 27a67445c9
commit d2b7ce3909
1 changed files with 3 additions and 0 deletions

View File

@ -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";