don't assert on debug builds either

I'm seeing several IllegalStateException crashes due to e.g. having an
alert posted when app's in the background. Need to fix them, but the
debug build crashing isn't helpful. Log.e() instead.
This commit is contained in:
Eric House 2018-03-22 06:55:49 -07:00
parent ab0764fa5a
commit 8f86cf9a77

View file

@ -132,7 +132,8 @@ public class DBAlert extends XWDialogFragment {
Log.d( TAG, "null activity..." );
}
} catch ( IllegalStateException ex ) {
Assert.assertFalse( BuildConfig.DEBUG );
// Assert.assertFalse( BuildConfig.DEBUG );
Log.e( TAG, "got ISE; dropping alert" );
}
}
} );