show language as part of game name, not dict as separate line

This commit is contained in:
Andy2 2011-04-11 06:54:31 -07:00
parent 3fb368692c
commit 3c0cf176ef
2 changed files with 8 additions and 8 deletions

View file

@ -59,11 +59,6 @@
android:layout_height="wrap_content"
android:gravity="right"
/>
<TextView android:id="@+id/dict"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="right"
/>
</LinearLayout>
</LinearLayout>

View file

@ -97,12 +97,17 @@ public class GameListAdapter extends XWListAdapter {
if ( hideTitle ) {
view.setVisibility( View.GONE );
} else {
view.setText( GameUtils.gameName( m_context, path ) );
String name = GameUtils.gameName( m_context, path );
if ( true ) { // FIXME
name += " (" +
DictLangCache.getLangName(m_context,
summary.dictName)
+ ")";
}
view.setText( name );
}
view = (TextView)layout.findViewById( R.id.state );
view.setText( summary.summarizeState( m_context ) );
view = (TextView)layout.findViewById( R.id.dict );
view.setText( summary.dictName );
view = (TextView)layout.findViewById( R.id.modtime );
view.setText( m_df.format( new Date( summary.modtime ) ) );