This repository was archived by the owner on May 30, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
mastodon/src/main/java/org/joinmastodon/android/fragments Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -394,16 +394,16 @@ public void onSaveInstanceState(Bundle outState){
394
394
outState .putStringArrayList ("pollOptions" , opts );
395
395
outState .putInt ("pollDuration" , pollDuration );
396
396
outState .putString ("pollDurationStr" , pollDurationStr );
397
- outState .putBoolean ("hasSpoiler" , hasSpoiler );
398
- if (!attachments .isEmpty ()){
399
- ArrayList <Parcelable > serializedAttachments =new ArrayList <>(attachments .size ());
400
- for (DraftMediaAttachment att :attachments ){
401
- serializedAttachments .add (Parcels .wrap (att ));
402
- }
403
- outState .putParcelableArrayList ("attachments" , serializedAttachments );
397
+ }
398
+ outState .putBoolean ("hasSpoiler" , hasSpoiler );
399
+ if (!attachments .isEmpty ()){
400
+ ArrayList <Parcelable > serializedAttachments =new ArrayList <>(attachments .size ());
401
+ for (DraftMediaAttachment att :attachments ){
402
+ serializedAttachments .add (Parcels .wrap (att ));
404
403
}
405
- outState .putSerializable ( "visibility " , statusVisibility );
404
+ outState .putParcelableArrayList ( "attachments " , serializedAttachments );
406
405
}
406
+ outState .putSerializable ("visibility" , statusVisibility );
407
407
}
408
408
409
409
@ Override
You can’t perform that action at this time.
0 commit comments