Skip to content

Commit

Permalink
Fix parcel list serializer for empty lists
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgomezrico authored Nov 20, 2018
1 parent f391f1d commit 432ac3e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public ParcelableListSerializer(ValueParameterDescriptor field) {
}

public String generateReadValue() {
return "source.createTypedArrayList(" + getNoneNullProjectionType() + ".CREATOR)";
return "listOf<" + getNoneNullProjectionType() + "}>().apply { source.readTypedList(this, " + getNoneNullProjectionType() + "}.CREATOR) }";
}

public String generateWriteValue() {
Expand Down

0 comments on commit 432ac3e

Please sign in to comment.