call init from outside constructor since constructor can call back into callee

This commit is contained in:
Eric House 2014-04-09 05:38:46 -07:00
parent ccf84135a0
commit 1035c94c3f
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -124,7 +124,6 @@ public class GamesListDelegate extends DelegateBase
{
super( activity, savedInstanceState );
m_activity = activity;
init( savedInstanceState );
}
protected Dialog createDialog( int id )
@ -348,7 +347,7 @@ public class GamesListDelegate extends DelegateBase
}
}
private void init( Bundle savedInstanceState )
protected void init( Bundle savedInstanceState )
{
CrashTrack.init( m_activity );