mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
set and clear dbchange listener in onCreate and onDestroy rather than
onStart and onPause so it'll get called when not in front too. Not sure why this worked before the GameLock change....
This commit is contained in:
parent
c144503630
commit
467e999509
1 changed files with 9 additions and 2 deletions
|
@ -197,6 +197,8 @@ public class GamesList extends XWListActivity
|
|||
NetUtils.informOfDeaths( this );
|
||||
|
||||
startFirstHasDict( getIntent() );
|
||||
|
||||
DBUtils.setDBChangeListener( this );
|
||||
} // onCreate
|
||||
|
||||
@Override
|
||||
|
@ -215,7 +217,6 @@ public class GamesList extends XWListActivity
|
|||
{
|
||||
super.onStart();
|
||||
DispatchNotify.SetRelayIDsHandler( this );
|
||||
DBUtils.setDBChangeListener( this );
|
||||
|
||||
// TelephonyManager mgr =
|
||||
// (TelephonyManager)getSystemService( Context.TELEPHONY_SERVICE );
|
||||
|
@ -231,12 +232,18 @@ public class GamesList extends XWListActivity
|
|||
// (TelephonyManager)getSystemService( Context.TELEPHONY_SERVICE );
|
||||
// mgr.listen( m_phoneStateListener, PhoneStateListener.LISTEN_NONE );
|
||||
// m_phoneStateListener = null;
|
||||
DBUtils.clearDBChangeListener( this );
|
||||
DispatchNotify.SetRelayIDsHandler( null );
|
||||
|
||||
super.onStop();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onDestroy()
|
||||
{
|
||||
DBUtils.clearDBChangeListener( this );
|
||||
super.onDestroy();
|
||||
}
|
||||
|
||||
// DispatchNotify.HandleRelaysIface interface
|
||||
public void HandleRelaysIDs( final String[] relayIDs )
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue