Fix #315
This commit is contained in:
parent
159d91f390
commit
defa8b014e
|
@ -394,16 +394,16 @@ public class ComposeFragment extends MastodonToolbarFragment implements OnBackPr
|
||||||
outState.putStringArrayList("pollOptions", opts);
|
outState.putStringArrayList("pollOptions", opts);
|
||||||
outState.putInt("pollDuration", pollDuration);
|
outState.putInt("pollDuration", pollDuration);
|
||||||
outState.putString("pollDurationStr", pollDurationStr);
|
outState.putString("pollDurationStr", pollDurationStr);
|
||||||
outState.putBoolean("hasSpoiler", hasSpoiler);
|
|
||||||
if(!attachments.isEmpty()){
|
|
||||||
ArrayList<Parcelable> serializedAttachments=new ArrayList<>(attachments.size());
|
|
||||||
for(DraftMediaAttachment att:attachments){
|
|
||||||
serializedAttachments.add(Parcels.wrap(att));
|
|
||||||
}
|
|
||||||
outState.putParcelableArrayList("attachments", serializedAttachments);
|
|
||||||
}
|
|
||||||
outState.putSerializable("visibility", statusVisibility);
|
|
||||||
}
|
}
|
||||||
|
outState.putBoolean("hasSpoiler", hasSpoiler);
|
||||||
|
if(!attachments.isEmpty()){
|
||||||
|
ArrayList<Parcelable> serializedAttachments=new ArrayList<>(attachments.size());
|
||||||
|
for(DraftMediaAttachment att:attachments){
|
||||||
|
serializedAttachments.add(Parcels.wrap(att));
|
||||||
|
}
|
||||||
|
outState.putParcelableArrayList("attachments", serializedAttachments);
|
||||||
|
}
|
||||||
|
outState.putSerializable("visibility", statusVisibility);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue