From 5f91dd12d886d1da53b2b1976e9c444f3c9725db Mon Sep 17 00:00:00 2001 From: Makoto Onuki Date: Thu, 11 Nov 2010 14:03:53 -0800 Subject: [PATCH] Fix "Parcel@406cd448: Unmarshalling unknown type code..." It was a mismatch between onSaveInstanceState and onRestoreInstanceState. Bug 3158588 Change-Id: I36ff6ee8a666ff418f3cf0da50477f9347040322 --- src/com/android/email/activity/ThreePaneLayout.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/android/email/activity/ThreePaneLayout.java b/src/com/android/email/activity/ThreePaneLayout.java index 2027f24ff..5209d0bd2 100644 --- a/src/com/android/email/activity/ThreePaneLayout.java +++ b/src/com/android/email/activity/ThreePaneLayout.java @@ -29,6 +29,7 @@ import android.widget.LinearLayout; // TODO Implement animation // TODO On STATE_PORTRAIT_MIDDLE_EXPANDED state, right pane should be pushed out, rather than // squished. +// TODO Test SavedState too. /** * The "three pane" layout used on tablet. @@ -248,7 +249,7 @@ public class ThreePaneLayout extends LinearLayout implements View.OnClickListene @Override public void writeToParcel(Parcel out, int flags) { super.writeToParcel(out, flags); - out.writeLong(mPaneState); + out.writeInt(mPaneState); } public static final Parcelable.Creator CREATOR