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 } // onCreate
@Override
protected void onSaveInstanceState( Bundle outState )
{
super.onSaveInstanceState( outState );
m_dlgt.onSaveInstanceState( outState );
}
@Override @Override
protected void onActivityResult( int requestCode, int resultCode, Intent data ) 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. // Does nothing unless overridden. These belong in an interface.
protected void init( Bundle savedInstanceState ) { Assert.fail(); } protected void init( Bundle savedInstanceState ) { Assert.fail(); }
protected void onSaveInstanceState( Bundle outState ) {}
public boolean onPrepareOptionsMenu( Menu menu ) { return false; } public boolean onPrepareOptionsMenu( Menu menu ) { return false; }
public boolean onOptionsItemSelected( MenuItem item ) { return false; } public boolean onOptionsItemSelected( MenuItem item ) { return false; }
protected void onStart() {} protected void onStart() {}

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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