diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardActivity.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardActivity.java index 3851ceda4..c5a8f691b 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardActivity.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardActivity.java @@ -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 ) { diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DelegateBase.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DelegateBase.java index c6ddfb59f..0a591df7b 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DelegateBase.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DelegateBase.java @@ -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() {} diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameConfigActivity.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameConfigActivity.java index b852413b3..241aced1c 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameConfigActivity.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameConfigActivity.java @@ -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 ) { diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesListActivity.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesListActivity.java index 0096fe505..06842384d 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesListActivity.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesListActivity.java @@ -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 ) { diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/NewGameActivity.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/NewGameActivity.java index 9b2b0a46a..de8f0f69f 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/NewGameActivity.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/NewGameActivity.java @@ -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 ) { diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/SMSInviteActivity.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/SMSInviteActivity.java index bbb08dd00..d077d32de 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/SMSInviteActivity.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/SMSInviteActivity.java @@ -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 ) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/XWActivity.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/XWActivity.java index dce0d10e9..dc453e0d1 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/XWActivity.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/XWActivity.java @@ -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() { diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/XWListActivity.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/XWListActivity.java index e4a286d70..19e5a8f7f 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/XWListActivity.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/XWListActivity.java @@ -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() {