From d88f66a890cc1cf7b25b2bd383b7b2e2b72d4c6f Mon Sep 17 00:00:00 2001 From: Eric House Date: Tue, 29 Jan 2013 18:57:03 -0800 Subject: [PATCH] record experiment with serialization -- no code change. --- .../src/org/eehouse/android/xw4/DlgDelegate.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DlgDelegate.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DlgDelegate.java index a7152518f..460bdb716 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DlgDelegate.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DlgDelegate.java @@ -499,9 +499,17 @@ public class DlgDelegate { private void addState( DlgState state ) { + // I'm getting serialization failures on devices pointing at + // DlgState but the code below says the object's fine (as it + // should be.) Just to have a record.... + // + // Bundle bundle = new Bundle(); + // DbgUtils.logf( "addState: testing serializable" ); + // bundle.putSerializable( "foo", state ); + // state = (DlgState)bundle.getSerializable( "foo" ); + // DbgUtils.logf( "addState: serializable is ok" ); + m_dlgStates.put( state.m_id, state ); - DbgUtils.logf( "addState: there are now %d active dialogs", - m_dlgStates.size() ); } }