From e98c25a81acf9a8dde8d296425799fe4ebeaf397 Mon Sep 17 00:00:00 2001 From: Eric House Date: Wed, 13 Sep 2017 07:39:07 -0700 Subject: [PATCH] fix crash by removing assert I didn't need Looks like what I was worried about wasn't an issue. --- .../app/src/main/java/org/eehouse/android/xw4/BoardView.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BoardView.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BoardView.java index 25b804311..d0c9f33de 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BoardView.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BoardView.java @@ -158,8 +158,7 @@ public class BoardView extends View implements BoardHandler, SyncedDraw { if ( null != m_dims ) { if ( BoardContainer.getIsPortrait() != (m_dims.height > m_dims.width) ) { - // square possible; will break above! - Assert.assertTrue( m_dims.height != m_dims.width ); + // square possible; will break above! No. tested by forceing square Log.d( TAG, "onMeasure: discarding m_dims" ); if ( ++m_dimsTossCount < 4 ) { m_dims = null;