fix bug moving dicts: location wasn't getting updated when the move

was successful and so subsequent moves reported wrong location.
This commit is contained in:
Andy2 2011-08-06 20:06:21 -07:00
parent fc650ef317
commit b20584b74e

View file

@ -214,16 +214,17 @@ public class DictsActivity extends ExpandableListActivity
case MOVE_DICT: case MOVE_DICT:
lstnr = new DialogInterface.OnClickListener() { lstnr = new DialogInterface.OnClickListener() {
public void onClick( DialogInterface dlg, int item ) { public void onClick( DialogInterface dlg, int item ) {
Utils.logf( "CALLING moveDict" );
if ( GameUtils.moveDict( DictsActivity.this, if ( GameUtils.moveDict( DictsActivity.this,
m_moveName, m_moveName,
m_moveFromLoc, m_moveFromLoc,
m_moveToLoc ) ) { m_moveToLoc ) ) {
m_rowView. m_rowView.
setComment( m_locNames[m_moveToLoc.ordinal()]); setComment( m_locNames[m_moveToLoc.ordinal()]);
m_rowView.cache( m_moveToLoc );
m_rowView.invalidate(); m_rowView.invalidate();
} else {
Utils.logf( "moveDict failed" );
} }
Utils.logf( "moveDict RETURNED" );
} }
}; };
dialog = new AlertDialog.Builder( this ) dialog = new AlertDialog.Builder( this )