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
|
} // 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 )
|
||||||
{
|
{
|
||||||
|
|
|
@ -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() {}
|
||||||
|
|
|
@ -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 )
|
||||||
{
|
{
|
||||||
|
|
|
@ -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 )
|
||||||
{
|
{
|
||||||
|
|
|
@ -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 )
|
||||||
{
|
{
|
||||||
|
|
|
@ -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 )
|
||||||
|
|
|
@ -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()
|
||||||
{
|
{
|
||||||
|
|
|
@ -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()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue