From a3bf94200497ab5caa023db8f52ab9b196aca390 Mon Sep 17 00:00:00 2001 From: Eric House Date: Thu, 28 Sep 2017 06:51:24 -0700 Subject: [PATCH] fix assertion by not handling Action Was wrong to assert that unexpected Actions never arrived. --- .../main/java/org/eehouse/android/xw4/StudyListDelegate.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/StudyListDelegate.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/StudyListDelegate.java index eed42cdee..db51df1f4 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/StudyListDelegate.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/StudyListDelegate.java @@ -50,6 +50,7 @@ public class StudyListDelegate extends ListDelegateBase implements OnItemSelectedListener, SelectableItem, View.OnLongClickListener, View.OnClickListener, DBUtils.StudyListListener { + private static final String TAG = StudyListDelegate.class.getSimpleName(); protected static final int NO_LANG = -1; @@ -220,7 +221,8 @@ public class StudyListDelegate extends ListDelegateBase showToast( msg ); break; default: - Assert.assertFalse( BuildConfig.DEBUG ); + Log.d( TAG, "not handling: %s", action ); + handled = false; break; } return handled;