move method into superclasses

This commit is contained in:
Eric House 2014-06-06 06:33:28 -07:00
parent 164199335a
commit 60dc482e76
8 changed files with 15 additions and 35 deletions

View file

@ -42,13 +42,6 @@ public class BoardActivity extends XWActivity {
}
} // onCreate
@Override
protected void onSaveInstanceState( Bundle outState )
{
super.onSaveInstanceState( outState );
m_dlgt.onSaveInstanceState( outState );
}
@Override
protected void onActivityResult( int requestCode, int resultCode, Intent data )
{

View file

@ -58,6 +58,7 @@ public class DelegateBase implements DlgDelegate.DlgClickNotify,
// Does nothing unless overridden. These belong in an interface.
protected void init( Bundle savedInstanceState ) { Assert.fail(); }
protected void onSaveInstanceState( Bundle outState ) {}
public boolean onPrepareOptionsMenu( Menu menu ) { return false; }
public boolean onOptionsItemSelected( MenuItem item ) { return false; }
protected void onStart() {}

View file

@ -35,13 +35,6 @@ public class GameConfigActivity extends XWActivity {
super.onCreate( savedInstanceState, m_dlgt );
} // onCreate
@Override
protected void onSaveInstanceState( Bundle outState )
{
super.onSaveInstanceState( outState );
m_dlgt.onSaveInstanceState( outState );
}
@Override
public boolean onKeyDown( int keyCode, KeyEvent event )
{

View file

@ -55,13 +55,6 @@ public class GamesListActivity extends XWListActivity {
m_dlgt.onNewIntent( intent );
}
@Override
protected void onSaveInstanceState( Bundle outState )
{
super.onSaveInstanceState( outState );
m_dlgt.onSaveInstanceState( outState );
}
@Override
public void onWindowFocusChanged( boolean hasFocus )
{

View file

@ -35,13 +35,6 @@ public class NewGameActivity extends XWActivity {
super.onCreate( savedInstanceState, m_dlgt );
}
@Override
protected void onSaveInstanceState( Bundle outState )
{
super.onSaveInstanceState( outState );
m_dlgt.onSaveInstanceState( outState );
}
@Override
public void onWindowFocusChanged( boolean hasFocus )
{

View file

@ -35,13 +35,6 @@ public class SMSInviteActivity extends InviteActivity {
super.onCreate( savedInstanceState, m_dlgt );
}
@Override
protected void onSaveInstanceState( Bundle outState )
{
super.onSaveInstanceState( outState );
m_dlgt.onSaveInstanceState( outState );
}
@Override
protected void onActivityResult( int requestCode, int resultCode,
Intent data )

View file

@ -37,6 +37,13 @@ public class XWActivity extends Activity {
dlgt.init( savedInstanceState );
}
@Override
protected void onSaveInstanceState( Bundle outState )
{
super.onSaveInstanceState( outState );
m_dlgt.onSaveInstanceState( outState );
}
@Override
protected void onPause()
{

View file

@ -37,6 +37,13 @@ public class XWListActivity extends ListActivity {
dlgt.init( savedInstanceState );
}
@Override
protected void onSaveInstanceState( Bundle outState )
{
super.onSaveInstanceState( outState );
m_dlgt.onSaveInstanceState( outState );
}
@Override
protected void onPause()
{