remove unneeded variable

This commit is contained in:
Eric House 2012-12-03 23:07:14 -08:00
parent 2c71c8425f
commit 922f4a22f4
2 changed files with 6 additions and 6 deletions

View file

@ -331,8 +331,9 @@ public class GameListAdapter extends XWListAdapter {
}
}
public void setField( String fieldName )
public boolean setField( String fieldName )
{
boolean changed = false;
int[] ids = {
R.string.game_summary_field_empty
,R.string.game_summary_field_language
@ -358,7 +359,9 @@ public class GameListAdapter extends XWListAdapter {
}
m_viewsCache.clear();
m_fieldID = result;
changed = true;
}
return changed;
}
}

View file

@ -90,7 +90,6 @@ public class GamesList extends XWListActivity
private String[] m_sameLangDicts;
private int m_missingDictLang;
private long m_rowid;
private String m_nameField;
private NetLaunchInfo m_netLaunchInfo;
// private String m_smsPhone;
@ -851,10 +850,8 @@ public class GamesList extends XWListActivity
private void updateField()
{
String newField = CommonPrefs.getSummaryField( this );
if ( ! newField.equals( m_nameField ) ) {
m_nameField = newField;
m_adapter.setField( newField );
onContentChanged();
if ( m_adapter.setField( newField ) ) {
onContentChanged();
}
}