From b5ab8803c420cc9673867800261f1b4d9c9b9c33 Mon Sep 17 00:00:00 2001 From: Eric House Date: Fri, 1 Feb 2019 19:39:23 -0800 Subject: [PATCH] remove debug-only assert I'm seeing Good to know it's happening; now don't crash! --- .../src/main/java/org/eehouse/android/xw4/MainActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/MainActivity.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/MainActivity.java index dd446d3c6..4e82813aa 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/MainActivity.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/MainActivity.java @@ -64,7 +64,9 @@ public class MainActivity extends XWActivity @Override protected void onCreate( Bundle savedInstanceState ) { - Assert.assertTrue(isTaskRoot() || !BuildConfig.DEBUG); + if ( BuildConfig.DEBUG && !isTaskRoot() ) { + Log.e( TAG, "isTaskRoot() => false!!! What to do?" ); + } m_dpEnabled = XWPrefs.getIsTablet( this );