forked from mirrors/Fedilab
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) {
|
public void addSharing(String url, String title, String description, String subject, String content, String saveFilePath) {
|
||||||
int position = statusList.size() - 1;
|
int position = statusList.size() - 1;
|
||||||
|
if (description == null && content == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (title != null || subject != null) {
|
if (title != null || subject != null) {
|
||||||
statusList.get(position).text = title != null ? title : subject;
|
statusList.get(position).text = title != null ? title : subject;
|
||||||
statusList.get(position).text += "\n\n";
|
statusList.get(position).text += "\n\n";
|
||||||
|
|
Loading…
Reference in a new issue