mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-23 07:27:22 +01:00
remove incorrect assertion
DELETE_DICT Action is expected to flow through child, at least until I fix to disable deleting a dict while it's open in the dict browser. It may be confusing but with the assert gone does no harm.
This commit is contained in:
parent
1f3d1cbb79
commit
b07fd2699c
2 changed files with 14 additions and 4 deletions
|
@ -302,9 +302,19 @@ public class DictBrowseDelegate extends DelegateBase
|
||||||
@Override
|
@Override
|
||||||
public boolean onPosButton( Action action, Object[] params )
|
public boolean onPosButton( Action action, Object[] params )
|
||||||
{
|
{
|
||||||
Assert.assertTrue( !BuildConfig.DEBUG || Action.FINISH_ACTION==action );
|
boolean handled = false;
|
||||||
finish();
|
switch( action ) {
|
||||||
return true;
|
case DELETE_DICT_ACTION:
|
||||||
|
// This comes in from parent
|
||||||
|
break;
|
||||||
|
case FINISH_ACTION:
|
||||||
|
handled = true;
|
||||||
|
finish();
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
Assert.assertTrue( !BuildConfig.DEBUG );
|
||||||
|
}
|
||||||
|
return handled;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void findButtonClicked()
|
private void findButtonClicked()
|
||||||
|
|
|
@ -622,7 +622,7 @@ public class DictsDelegate extends ListDelegateBase
|
||||||
boolean handled = true;
|
boolean handled = true;
|
||||||
|
|
||||||
switch ( item.getItemId() ) {
|
switch ( item.getItemId() ) {
|
||||||
case R.id.dicts_delete:
|
case R.id.dicts_delete: // ideally, disable me when dictbrowse open
|
||||||
deleteSelected();
|
deleteSelected();
|
||||||
break;
|
break;
|
||||||
case R.id.dicts_move:
|
case R.id.dicts_move:
|
||||||
|
|
Loading…
Add table
Reference in a new issue