mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-31 19:57:06 +01:00
don't clear selection after moving a group up or down (first of
several cases where we want to preserve)
This commit is contained in:
parent
77d38fe230
commit
e6860a734c
1 changed files with 4 additions and 1 deletions
|
@ -725,6 +725,7 @@ public class GamesList extends XWExpandableListActivity
|
||||||
|
|
||||||
boolean handled = true;
|
boolean handled = true;
|
||||||
boolean changeContent = false;
|
boolean changeContent = false;
|
||||||
|
boolean keepSels = false;
|
||||||
int groupPos = getSelGroupPos();
|
int groupPos = getSelGroupPos();
|
||||||
long groupID = -1;
|
long groupID = -1;
|
||||||
if ( 0 <= groupPos ) {
|
if ( 0 <= groupPos ) {
|
||||||
|
@ -860,9 +861,11 @@ public class GamesList extends XWExpandableListActivity
|
||||||
break;
|
break;
|
||||||
case R.id.list_group_moveup:
|
case R.id.list_group_moveup:
|
||||||
changeContent = m_adapter.moveGroup( groupID, -1 );
|
changeContent = m_adapter.moveGroup( groupID, -1 );
|
||||||
|
keepSels = true;
|
||||||
break;
|
break;
|
||||||
case R.id.list_group_movedown:
|
case R.id.list_group_movedown:
|
||||||
changeContent = m_adapter.moveGroup( groupID, 1 );
|
changeContent = m_adapter.moveGroup( groupID, 1 );
|
||||||
|
keepSels = true;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -870,7 +873,7 @@ public class GamesList extends XWExpandableListActivity
|
||||||
handled = false;
|
handled = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( handled ) {
|
if ( handled && !keepSels ) {
|
||||||
clearSelections();
|
clearSelections();
|
||||||
}
|
}
|
||||||
if ( changeContent ) {
|
if ( changeContent ) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue