mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-20 22:26:54 +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 changeContent = false;
|
||||
boolean keepSels = false;
|
||||
int groupPos = getSelGroupPos();
|
||||
long groupID = -1;
|
||||
if ( 0 <= groupPos ) {
|
||||
|
@ -860,9 +861,11 @@ public class GamesList extends XWExpandableListActivity
|
|||
break;
|
||||
case R.id.list_group_moveup:
|
||||
changeContent = m_adapter.moveGroup( groupID, -1 );
|
||||
keepSels = true;
|
||||
break;
|
||||
case R.id.list_group_movedown:
|
||||
changeContent = m_adapter.moveGroup( groupID, 1 );
|
||||
keepSels = true;
|
||||
break;
|
||||
|
||||
default:
|
||||
|
@ -870,7 +873,7 @@ public class GamesList extends XWExpandableListActivity
|
|||
handled = false;
|
||||
}
|
||||
|
||||
if ( handled ) {
|
||||
if ( handled && !keepSels ) {
|
||||
clearSelections();
|
||||
}
|
||||
if ( changeContent ) {
|
||||
|
|
Loading…
Reference in a new issue