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
|
||||
public boolean onPosButton( Action action, Object[] params )
|
||||
{
|
||||
Assert.assertTrue( !BuildConfig.DEBUG || Action.FINISH_ACTION==action );
|
||||
finish();
|
||||
return true;
|
||||
boolean handled = false;
|
||||
switch( action ) {
|
||||
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()
|
||||
|
|
|
@ -622,7 +622,7 @@ public class DictsDelegate extends ListDelegateBase
|
|||
boolean handled = true;
|
||||
|
||||
switch ( item.getItemId() ) {
|
||||
case R.id.dicts_delete:
|
||||
case R.id.dicts_delete: // ideally, disable me when dictbrowse open
|
||||
deleteSelected();
|
||||
break;
|
||||
case R.id.dicts_move:
|
||||
|
|
Loading…
Add table
Reference in a new issue