Skip initializations in the constructor if the MathView is in preview mode.
The reported issue is quite annoying. It occurs in recent Android Studio versions, while editing a layout xml file that contains a MathView. It complains that it can't access the getSettings() method of the WebView. Easiest fix is to skip the whole MathView-specific initializations when in preview mode.
Skip initializations in the constructor if the MathView is in preview mode.
The reported issue is quite annoying. It occurs in recent Android Studio versions, while editing a layout xml file that contains a MathView. It complains that it can't access the getSettings() method of the WebView. Easiest fix is to skip the whole MathView-specific initializations when in preview mode.