mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-27 07:58:49 +01:00
move method into superclasses
This commit is contained in:
parent
164199335a
commit
60dc482e76
8 changed files with 15 additions and 35 deletions
|
@ -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 )
|
||||
{
|
||||
|
|
|
@ -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() {}
|
||||
|
|
|
@ -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 )
|
||||
{
|
||||
|
|
|
@ -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 )
|
||||
{
|
||||
|
|
|
@ -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 )
|
||||
{
|
||||
|
|
|
@ -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 )
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue