commit | 8dea8744ac12a97533e8de0f8e56a58d630eb489 | [log] [tgz] |
---|---|---|
author | Jens Ole Lauridsen <jlauridsen@google.com> | Mon Apr 20 11:18:51 2015 -0700 |
committer | Jens Ole Lauridsen <jlauridsen@google.com> | Thu Apr 23 14:12:04 2015 -0700 |
tree | 8851b421096808b8d9202e1878f1656baa3608ca | |
parent | db720ce9f27f8c27ea2287f8bb999825a9bf09e9 [diff] |
parcel: Add efficient methods for writing and reading a parcelable. The documentation used to recommend calling Parcelable.writeToParcel instead of using the Parcel API for sending Parcelable types. This leaves the developer to have to deal with null values and makes it harder to create tools that generate correct efficient code. I suggest that we add a these 2 methods: writeTypedObject and createTypedObject as an alternative. Change-Id: I85443417909dcb9590d3f0a72f0130a4da4ead38