Found a way to read and write boolean in parcelable