fix assertion by not handling Action

Was wrong to assert that unexpected Actions never arrived.
This commit is contained in:
Eric House 2017-09-28 06:51:24 -07:00
parent 79e852a9eb
commit a3bf942004

View file

@ -50,6 +50,7 @@ public class StudyListDelegate extends ListDelegateBase
implements OnItemSelectedListener, SelectableItem, implements OnItemSelectedListener, SelectableItem,
View.OnLongClickListener, View.OnClickListener, View.OnLongClickListener, View.OnClickListener,
DBUtils.StudyListListener { DBUtils.StudyListListener {
private static final String TAG = StudyListDelegate.class.getSimpleName();
protected static final int NO_LANG = -1; protected static final int NO_LANG = -1;
@ -220,7 +221,8 @@ public class StudyListDelegate extends ListDelegateBase
showToast( msg ); showToast( msg );
break; break;
default: default:
Assert.assertFalse( BuildConfig.DEBUG ); Log.d( TAG, "not handling: %s", action );
handled = false;
break; break;
} }
return handled; return handled;