mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +01:00
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:
parent
fc650ef317
commit
b20584b74e
1 changed files with 3 additions and 2 deletions
|
@ -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 )
|
||||||
|
|
Loading…
Reference in a new issue