mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
call init from outside constructor since constructor can call back into callee
This commit is contained in:
parent
5d83d2f318
commit
051cc5eb1d
2 changed files with 2 additions and 2 deletions
|
@ -67,6 +67,7 @@ public class GamesListActivity extends ListActivity {
|
|||
{
|
||||
super.onCreate( savedInstanceState );
|
||||
m_dlgt = new GamesListDelegate( this, savedInstanceState );
|
||||
m_dlgt.init( savedInstanceState );
|
||||
} // onCreate
|
||||
|
||||
// called when we're brought to the front (probably as a result of
|
||||
|
|
|
@ -125,7 +125,6 @@ public class GamesListDelegate extends DelegateBase
|
|||
{
|
||||
super( activity, savedInstanceState, R.menu.games_list_menu );
|
||||
m_activity = activity;
|
||||
init( savedInstanceState );
|
||||
}
|
||||
|
||||
protected Dialog createDialog( int id )
|
||||
|
@ -349,7 +348,7 @@ public class GamesListDelegate extends DelegateBase
|
|||
}
|
||||
}
|
||||
|
||||
private void init( Bundle savedInstanceState )
|
||||
protected void init( Bundle savedInstanceState )
|
||||
{
|
||||
CrashTrack.init( m_activity );
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue