Update existing CodeView options
masterWhen a CodeView is already initialized (via setOptions or setAdapter), calling setOptions or setAdapter again will 'flush' the current adapter. To update specific parameters without losing the current state, use updateOptions(...) or updateAdapter(...).
// Update existing options without flushing the adapter
codeView.getOptions()
.withCode(R.string.listing_java)
.withLanguage("java")
.withTheme(ColorTheme.MONOKAI);