mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
get rid of m_invalPath. It seems to be the onContentChanged() on
focus grabs that was needed.
This commit is contained in:
parent
dbb69bfff5
commit
151df44c96
1 changed files with 1 additions and 7 deletions
|
@ -58,7 +58,6 @@ public class GamesList extends XWListActivity
|
|||
private static final int SHOW_SUBST = WARN_NODICT + 2;
|
||||
|
||||
private GameListAdapter m_adapter;
|
||||
private String m_invalPath = null;
|
||||
private String m_missingDict;
|
||||
private Handler m_handler;
|
||||
private String m_missingDictName;
|
||||
|
@ -206,7 +205,6 @@ public class GamesList extends XWListActivity
|
|||
String path = addGame( true );
|
||||
GameUtils.doConfig( GamesList.this, path,
|
||||
RelayGameActivity.class );
|
||||
m_invalPath = path;
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -290,9 +288,7 @@ public class GamesList extends XWListActivity
|
|||
public void onWindowFocusChanged( boolean hasFocus )
|
||||
{
|
||||
super.onWindowFocusChanged( hasFocus );
|
||||
if ( hasFocus && null != m_invalPath ) {
|
||||
m_adapter.inval( m_invalPath );
|
||||
m_invalPath = null;
|
||||
if ( hasFocus ) {
|
||||
onContentChanged();
|
||||
}
|
||||
}
|
||||
|
@ -422,7 +418,6 @@ public class GamesList extends XWListActivity
|
|||
GameUtils.launchGame( this, path );
|
||||
}
|
||||
}
|
||||
m_invalPath = path;
|
||||
}
|
||||
|
||||
private boolean handleMenuItem( int menuID, int position )
|
||||
|
@ -457,7 +452,6 @@ public class GamesList extends XWListActivity
|
|||
break;
|
||||
case R.id.list_item_config:
|
||||
GameUtils.doConfig( this, path, GameConfig.class );
|
||||
m_invalPath = path;
|
||||
break;
|
||||
|
||||
case R.id.list_item_new_from:
|
||||
|
|
Loading…
Add table
Reference in a new issue