mirror of
https://codeberg.org/tom79/Fedilab
synced 2025-02-03 20:57:52 +01:00
Fix null value
This commit is contained in:
parent
27a67445c9
commit
d2b7ce3909
@ -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…
x
Reference in New Issue
Block a user