From 1035c94c3f676a774366df0dc6aef97adacf8464 Mon Sep 17 00:00:00 2001 From: Eric House Date: Wed, 9 Apr 2014 05:38:46 -0700 Subject: [PATCH] call init from outside constructor since constructor can call back into callee --- .../XWords4/src/org/eehouse/android/xw4/GamesListActivity.java | 1 + .../XWords4/src/org/eehouse/android/xw4/GamesListDelegate.java | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) 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 77b0d83b8..fb128e185 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesListActivity.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesListActivity.java @@ -67,6 +67,7 @@ public class GamesListActivity extends ListActivity { { super.onCreate( savedInstanceState ); m_dlgt = new GamesListDelegate( this, savedInstanceState ); + m_dlgt.init( savedInstanceState ); } // onCreate // called when we're brought to the front (probably as a result of diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesListDelegate.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesListDelegate.java index aadd08c10..889fdb74b 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesListDelegate.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesListDelegate.java @@ -124,7 +124,6 @@ public class GamesListDelegate extends DelegateBase { super( activity, savedInstanceState ); m_activity = activity; - init( savedInstanceState ); } protected Dialog createDialog( int id ) @@ -348,7 +347,7 @@ public class GamesListDelegate extends DelegateBase } } - private void init( Bundle savedInstanceState ) + protected void init( Bundle savedInstanceState ) { CrashTrack.init( m_activity );