mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-05 20:45:49 +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 static final int SHOW_SUBST = WARN_NODICT + 2;
|
||||||
|
|
||||||
private GameListAdapter m_adapter;
|
private GameListAdapter m_adapter;
|
||||||
private String m_invalPath = null;
|
|
||||||
private String m_missingDict;
|
private String m_missingDict;
|
||||||
private Handler m_handler;
|
private Handler m_handler;
|
||||||
private String m_missingDictName;
|
private String m_missingDictName;
|
||||||
|
@ -206,7 +205,6 @@ public class GamesList extends XWListActivity
|
||||||
String path = addGame( true );
|
String path = addGame( true );
|
||||||
GameUtils.doConfig( GamesList.this, path,
|
GameUtils.doConfig( GamesList.this, path,
|
||||||
RelayGameActivity.class );
|
RelayGameActivity.class );
|
||||||
m_invalPath = path;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -290,9 +288,7 @@ public class GamesList extends XWListActivity
|
||||||
public void onWindowFocusChanged( boolean hasFocus )
|
public void onWindowFocusChanged( boolean hasFocus )
|
||||||
{
|
{
|
||||||
super.onWindowFocusChanged( hasFocus );
|
super.onWindowFocusChanged( hasFocus );
|
||||||
if ( hasFocus && null != m_invalPath ) {
|
if ( hasFocus ) {
|
||||||
m_adapter.inval( m_invalPath );
|
|
||||||
m_invalPath = null;
|
|
||||||
onContentChanged();
|
onContentChanged();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -422,7 +418,6 @@ public class GamesList extends XWListActivity
|
||||||
GameUtils.launchGame( this, path );
|
GameUtils.launchGame( this, path );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
m_invalPath = path;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean handleMenuItem( int menuID, int position )
|
private boolean handleMenuItem( int menuID, int position )
|
||||||
|
@ -457,7 +452,6 @@ public class GamesList extends XWListActivity
|
||||||
break;
|
break;
|
||||||
case R.id.list_item_config:
|
case R.id.list_item_config:
|
||||||
GameUtils.doConfig( this, path, GameConfig.class );
|
GameUtils.doConfig( this, path, GameConfig.class );
|
||||||
m_invalPath = path;
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case R.id.list_item_new_from:
|
case R.id.list_item_new_from:
|
||||||
|
|
Loading…
Add table
Reference in a new issue