mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-12 08:47:50 +01:00
fix reported NPE by saving variable in bundle passed to onCreate
This commit is contained in:
parent
0769cbccdc
commit
d602a0c22b
1 changed files with 3 additions and 0 deletions
|
@ -63,6 +63,7 @@ public class GamesList extends XWListActivity
|
||||||
private static final int RENAME_GAME = WARN_NODICT + 4;
|
private static final int RENAME_GAME = WARN_NODICT + 4;
|
||||||
|
|
||||||
private static final String SAVE_ROWID = "SAVE_ROWID";
|
private static final String SAVE_ROWID = "SAVE_ROWID";
|
||||||
|
private static final String SAVE_DICTNAMES = "SAVE_DICTNAMES";
|
||||||
|
|
||||||
private static final int NEW_NET_GAME_ACTION = 1;
|
private static final int NEW_NET_GAME_ACTION = 1;
|
||||||
private static final int RESET_GAME_ACTION = 2;
|
private static final int RESET_GAME_ACTION = 2;
|
||||||
|
@ -337,6 +338,7 @@ public class GamesList extends XWListActivity
|
||||||
{
|
{
|
||||||
super.onSaveInstanceState( outState );
|
super.onSaveInstanceState( outState );
|
||||||
outState.putLong( SAVE_ROWID, m_rowid );
|
outState.putLong( SAVE_ROWID, m_rowid );
|
||||||
|
outState.putStringArray( SAVE_DICTNAMES, m_missingDictNames );
|
||||||
if ( null != m_netLaunchInfo ) {
|
if ( null != m_netLaunchInfo ) {
|
||||||
m_netLaunchInfo.putSelf( outState );
|
m_netLaunchInfo.putSelf( outState );
|
||||||
}
|
}
|
||||||
|
@ -347,6 +349,7 @@ public class GamesList extends XWListActivity
|
||||||
if ( null != bundle ) {
|
if ( null != bundle ) {
|
||||||
m_rowid = bundle.getLong( SAVE_ROWID );
|
m_rowid = bundle.getLong( SAVE_ROWID );
|
||||||
m_netLaunchInfo = new NetLaunchInfo( bundle );
|
m_netLaunchInfo = new NetLaunchInfo( bundle );
|
||||||
|
m_missingDictNames = bundle.getStringArray( SAVE_DICTNAMES );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue